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

Function testCompilationError

runtime/sam/expr/expr_test.go:38–45  ·  view source on GitHub ↗
(t *testing.T, e string, expectErr error)

Source from the content-addressed store, hash-verified

36}
37
38func testCompilationError(t *testing.T, e string, expectErr error) {
39 t.Helper()
40 err := fmt.Errorf(`%s at line 1, column 8:
41values %s
42 %s`,
43 expectErr, e, strings.Repeat("~", len(e)))
44 testError(t, e, err)
45}
46
47func TestPrimitives(t *testing.T) {
48 const record = `{x:10::int32,f:2.5,s:"hello"}`

Callers 8

TestBadFunctionFunction · 0.85
TestAbsFunction · 0.85
TestSqrtFunction · 0.85
TestCeilFloorRoundFunction · 0.85
TestLogPowFunction · 0.85
TestOtherStrFuncsFunction · 0.85
TestLenFunction · 0.85
TestCastFunction · 0.85

Calls 1

testErrorFunction · 0.85

Tested by

no test coverage detected