33 lines
650 B
Go
33 lines
650 B
Go
|
// Package config ...
|
||
|
//
|
||
|
// Description : config ...
|
||
|
//
|
||
|
// Author : go_developer@163.com<白茶清欢>
|
||
|
//
|
||
|
// Date : 2024-11-07 18:08
|
||
|
package config
|
||
|
|
||
|
import "testing"
|
||
|
|
||
|
func TestInit(t *testing.T) {
|
||
|
type args struct {
|
||
|
configReceiver any
|
||
|
envFileList []string
|
||
|
configFile string
|
||
|
}
|
||
|
tests := []struct {
|
||
|
name string
|
||
|
args args
|
||
|
wantErr bool
|
||
|
}{
|
||
|
// TODO: Add test cases.
|
||
|
}
|
||
|
for _, tt := range tests {
|
||
|
t.Run(tt.name, func(t *testing.T) {
|
||
|
if err := Init(tt.args.configReceiver, tt.args.envFileList, tt.args.configFile); (err != nil) != tt.wantErr {
|
||
|
t.Errorf("Init() error = %v, wantErr %v", err, tt.wantErr)
|
||
|
}
|
||
|
})
|
||
|
}
|
||
|
}
|