Skip to content

Commit 84b9f25

Browse files
committed
Remove obsolete test
1 parent caa191d commit 84b9f25

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

checker/checker_test.go

-21
Original file line numberDiff line numberDiff line change
@@ -758,27 +758,6 @@ func TestCheck_TaggedFieldName(t *testing.T) {
758758
assert.NoError(t, err)
759759
}
760760

761-
// Let's do the same thing Go does and allow ambiguous identifiers - return first one found.
762-
//func TestCheck_Ambiguous(t *testing.T) {
763-
// type A struct {
764-
// Ambiguous bool
765-
// }
766-
// type B struct {
767-
// Ambiguous int
768-
// }
769-
// type Env struct {
770-
// A
771-
// B
772-
// }
773-
//
774-
// tree, err := parser.Parse(`Ambiguous == 1`)
775-
// require.NoError(t, err)
776-
//
777-
// _, err = checker.Check(tree, conf.New(Env{}))
778-
// assert.Error(t, err)
779-
// assert.Contains(t, err.Error(), "ambiguous identifier Ambiguous")
780-
//}
781-
782761
func TestCheck_NoConfig(t *testing.T) {
783762
tree, err := parser.Parse(`any`)
784763
require.NoError(t, err)

0 commit comments

Comments
 (0)