(t *testing.T)
| 10 | ) |
| 11 | |
| 12 | func TestContextLookupTypeNamedErrors(t *testing.T) { |
| 13 | sctx := super.NewContext() |
| 14 | |
| 15 | _, err := sctx.LookupTypeNamed("\xff", super.TypeNull) |
| 16 | assert.EqualError(t, err, `bad type name "\xff": invalid UTF-8`) |
| 17 | |
| 18 | _, err = sctx.LookupTypeNamed("null", super.TypeNull) |
| 19 | assert.EqualError(t, err, `bad type name "null": primitive type name`) |
| 20 | } |
| 21 | |
| 22 | func TestContextLookupTypeNamedAndLookupTypeDef(t *testing.T) { |
| 23 | sctx := super.NewContext() |
nothing calls this directly
no test coverage detected