func Test_sameTypeName_SameName(t *testing.T) { tests := []struct { name string t *sameTypeName want int wantErr bool }{ // TODO: Add test cases. } for _, tt := range tests { t := &sameTypeName{} got, err := t.SameName() if (err != nil) != tt.wantErr { t.Errorf("%q. sameTypeName.SameName() error = %v, wantErr %v", tt.name, err, tt.wantErr) continue } if got != tt.want { t.Errorf("%q. sameTypeName.SameName() = %v, want %v", tt.name, got, tt.want) } } }
func TestSameTypeName_SameName(t *testing.T) { tests := []struct { name string t *SameTypeName want int wantErr bool }{ // TODO: Add test cases. } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { t := &SameTypeName{} got, err := t.SameName() if (err != nil) != tt.wantErr { t.Errorf("SameTypeName.SameName() error = %v, wantErr %v", err, tt.wantErr) return } if got != tt.want { t.Errorf("SameTypeName.SameName() = %v, want %v", got, tt.want) } }) } }