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 := &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 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.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) } }) } }