plugins/utils/wechat/client_test.go

39 lines
705 B
Go

package wechat
import (
"context"
"testing"
)
func Test_newClient(t *testing.T) {
type args struct {
ctx context.Context
c *Server
}
tests := []struct {
name string
args args
}{
{
"Test_newClient",
args{
context.Background(),
&Server{
MchID: "1629276485", // 1605446142
MchCertificateSerialNumber: "3C7E21B74C04BE6227A690EB44184F219D763F92", // 4D081089DEB385316CBDCB55C070287E4920AC76
},
},
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
_, err := newClient(tt.args.ctx, tt.args.c)
if err != nil {
t.Errorf("newClient() error = %v", err)
return
}
})
}
}