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

Function TestInvalid

compiler/parser/parser_test.go:88–97  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

86}
87
88func TestInvalid(t *testing.T) {
89 file, err := fs.Open("invalid.spq")
90 require.NoError(t, err)
91 scanner := bufio.NewScanner(file)
92 for scanner.Scan() {
93 line := scanner.Bytes()
94 _, err := parser.Parse("", line)
95 assert.Error(t, err, "query: %q", line)
96 }
97}

Callers

nothing calls this directly

Calls 5

OpenFunction · 0.92
ParseFunction · 0.92
NewScannerMethod · 0.65
BytesMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected