package config import ( "testing" ) func TestInit(t *testing.T) { tests := []struct { name string }{ // TODO: Add test cases. {name: "t"}, {name: "t1"}, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { Default() t.Log(tt) Store() }) } } func TestSetConfigInfo(t *testing.T) { type args struct { name string config string path string } tests := []struct { name string args args }{ // TODO: Add test cases. {name: "t", args: args{ name: "test1", config: "ini", path: ".", }}, {name: "t1", args: args{ name: "test2", config: "yaml", path: "./test/", }}, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { t.Log(tt) SetConfigInfo(tt.args.name, tt.args.config, tt.args.path) Store() }) } }