You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
checkErr(".test", `'.' cannot be the first rune in FIELD_PATH ".test"`)
73
-
checkErr("foo.bar.", `final '.' in FIELD_PATH "foo.bar." is not allowed`)
74
-
checkErr("foo..bar", `unexpected '.' after '.' in FIELD_PATH "foo..bar"`)
75
-
checkErr("foo.[bar]", `unexpected '[' after '.' in FIELD_PATH "foo.[bar]"`)
76
-
checkErr("foo[bar", `cannot find final ']' in FIELD_PATH "foo[bar"`)
71
+
checkErr("", "FIELDS_PATH cannot be empty")
72
+
checkErr(".test", `'.' cannot be the first rune in FIELDS_PATH ".test"`)
73
+
checkErr("foo.bar.", `final '.' in FIELDS_PATH "foo.bar." is not allowed`)
74
+
checkErr("foo..bar", `unexpected '.' after '.' in FIELDS_PATH "foo..bar"`)
75
+
checkErr("foo.[bar]", `unexpected '[' after '.' in FIELDS_PATH "foo.[bar]"`)
76
+
checkErr("foo[bar", `cannot find final ']' in FIELDS_PATH "foo[bar"`)
77
77
checkErr("test.%foo", `unexpected '%' in field name "%foo" in FIELDS_PATH "test.%foo"`)
78
78
checkErr("test.f%oo", `unexpected '%' in field name "f%oo" in FIELDS_PATH "test.f%oo"`)
79
79
checkErr("Foo().()", `missing method name before () in FIELDS_PATH "Foo().()"`)
80
80
checkErr("abc.foo()", `method name "foo()" is not public in FIELDS_PATH "abc.foo()"`)
81
81
checkErr("Fo%o().abc", `unexpected '%' in method name "Fo%o()" in FIELDS_PATH "Fo%o().abc"`)
82
82
checkErr("Pipo.bingo.zzz.Foo.Zip().abc", `cannot call method Zip() as it is based on an unexported field "bingo" in FIELDS_PATH "Pipo.bingo.zzz.Foo.Zip().abc"`)
83
-
checkErr("foo[bar", `cannot find final ']' in FIELD_PATH "foo[bar"`)
83
+
checkErr("foo[bar", `cannot find final ']' in FIELDS_PATH "foo[bar"`)
0 commit comments