package client import ( "testing" sms "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/sms/v20210111" ) func TestSendSms(t *testing.T) { tests := []struct { name string }{ { name: "test01", }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { _SendSms() }) } } func TestPullStatus(t *testing.T) { tests := []struct { name string }{ { name: "test01", }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { _PullStatus() }) } } func TestSmsSendByTemplate(t *testing.T) { type args struct { templateID string mobile string param []string } tests := []struct { name string args args want *sms.SendSmsResponseParams wantErr bool }{ { name: "01", args: args{ templateID: "2319145", mobile: "", param: []string{"6666"}, }, want: &sms.SendSmsResponseParams{}, wantErr: false, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { _, err := _SmsSendByTemplate(tt.args.templateID, tt.args.mobile, tt.args.param) if (err != nil) != tt.wantErr { t.Errorf("SmsSendByTemplate() error = %v, wantErr %v", err, tt.wantErr) return } // if !reflect.DeepEqual(got, tt.want) { // t.Errorf("SmsSendByTemplate() = %v, want %v", got, tt.want) // } }) } }