package logger import ( "errors" "testing" ) func TestError(t *testing.T) { type args struct { msg string v []interface{} } tests := []struct { name string args args }{ { name: "错误", args: args{msg: "错误", v: []interface{}{errors.New("1212")}}, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { Error(tt.args.msg, tt.args.v...) }) } }