MCPcopy
hub / github.com/google/mtail / TestCompileCheckerError

Function TestCompileCheckerError

internal/runtime/compiler/compiler_test.go:30–39  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

28}
29
30func TestCompileCheckerError(t *testing.T) {
31 c := makeCompiler(t)
32 r := strings.NewReader(`// {
33i++
34}`)
35 _, err := c.Compile("test", r)
36 if err == nil {
37 t.Error("expected error, got nil")
38 }
39}
40
41func TestCompileCodegen(t *testing.T) {
42 c := makeCompiler(t)

Callers

nothing calls this directly

Calls 3

makeCompilerFunction · 0.85
CompileMethod · 0.80
ErrorMethod · 0.65

Tested by

no test coverage detected