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

Function testError

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

Source from the content-addressed store, hash-verified

25}
26
27func testError(t *testing.T, e string, expectErr error) {
28 t.Helper()
29 zt := ztest.ZTest{
30 SPQ: fmt.Sprintf("values %s", e),
31 Error: expectErr.Error() + "\n",
32 }
33 if err := zt.RunInternal(t.Context()); err != nil {
34 t.Fatal(err)
35 }
36}
37
38func testCompilationError(t *testing.T, e string, expectErr error) {
39 t.Helper()

Callers 1

testCompilationErrorFunction · 0.85

Calls 3

RunInternalMethod · 0.95
ContextMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected