MCPcopy Create free account
hub / github.com/brimdata/super / TestContextLookupTypeNamedErrors

Function TestContextLookupTypeNamedErrors

context_test.go:12–20  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

10)
11
12func 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
22func TestContextLookupTypeNamedAndLookupTypeDef(t *testing.T) {
23 sctx := super.NewContext()

Callers

nothing calls this directly

Calls 2

LookupTypeNamedMethod · 0.95
NewContextFunction · 0.92

Tested by

no test coverage detected