github.com/mdaxf/iac@v0.0.0-20240519030858-58a061660378/engine/function/sendemail_test.go (about)

     1  package funcs
     2  
     3  import (
     4  	"reflect"
     5  	"testing"
     6  )
     7  
     8  func TestEmailFuncs_Execute(t *testing.T) {
     9  	type args struct {
    10  		f *Funcs
    11  	}
    12  	tests := []struct {
    13  		name string
    14  		cf   *EmailFuncs
    15  		args args
    16  	}{
    17  		// TODO: Add test cases.
    18  	}
    19  	for _, tt := range tests {
    20  		t.Run(tt.name, func(t *testing.T) {
    21  			tt.cf.Execute(tt.args.f)
    22  		})
    23  	}
    24  }
    25  
    26  func TestEmailFuncs_Validate(t *testing.T) {
    27  	type args struct {
    28  		f *Funcs
    29  	}
    30  	tests := []struct {
    31  		name  string
    32  		cf    *EmailFuncs
    33  		args  args
    34  		want  bool
    35  		want1 EmailStru
    36  	}{
    37  		// TODO: Add test cases.
    38  	}
    39  	for _, tt := range tests {
    40  		t.Run(tt.name, func(t *testing.T) {
    41  			got, got1 := tt.cf.Validate(tt.args.f)
    42  			if got != tt.want {
    43  				t.Errorf("EmailFuncs.Validate() got = %v, want %v", got, tt.want)
    44  			}
    45  			if !reflect.DeepEqual(got1, tt.want1) {
    46  				t.Errorf("EmailFuncs.Validate() got1 = %v, want %v", got1, tt.want1)
    47  			}
    48  		})
    49  	}
    50  }