(t *testing.T)
| 920 | } |
| 921 | |
| 922 | func TestNativeStructWithMultipleSameFieldNames(t *testing.T) { |
| 923 | _, err := newNativeType(fieldNameByTag("cel"), reflect.TypeOf(TestStructWithMultipleSameNames{})) |
| 924 | if err == nil { |
| 925 | t.Fatal("newNativeType() did not fail as expected") |
| 926 | } |
| 927 | if !errors.Is(err, errDuplicatedFieldName) { |
| 928 | t.Fatalf("newNativeType() exepected duplicated field name error, but got: %v", err) |
| 929 | } |
| 930 | } |
| 931 | |
| 932 | func TestNativeStructEmbedded(t *testing.T) { |
| 933 | var nativeTests = []struct { |
nothing calls this directly
no test coverage detected