github.com/mdaxf/iac@v0.0.0-20240519030858-58a061660378/engine/function/sendMessage_test.go (about) 1 package funcs 2 3 import ( 4 "testing" 5 ) 6 7 func TestSendMessageFuncs_Execute(t *testing.T) { 8 type args struct { 9 f *Funcs 10 } 11 tests := []struct { 12 name string 13 cf *SendMessageFuncs 14 args args 15 }{ 16 // TODO: Add test cases. 17 } 18 for _, tt := range tests { 19 t.Run(tt.name, func(t *testing.T) { 20 tt.cf.Execute(tt.args.f) 21 }) 22 } 23 } 24 25 func TestSendMessageFuncs_Validate(t *testing.T) { 26 type args struct { 27 f *Funcs 28 } 29 tests := []struct { 30 name string 31 cf *SendMessageFuncs 32 args args 33 want bool 34 wantErr bool 35 }{ 36 // TODO: Add test cases. 37 } 38 for _, tt := range tests { 39 t.Run(tt.name, func(t *testing.T) { 40 got, err := tt.cf.Validate(tt.args.f) 41 if (err != nil) != tt.wantErr { 42 t.Errorf("SendMessageFuncs.Validate() error = %v, wantErr %v", err, tt.wantErr) 43 return 44 } 45 if got != tt.want { 46 t.Errorf("SendMessageFuncs.Validate() = %v, want %v", got, tt.want) 47 } 48 }) 49 } 50 }