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

Function TestCompileCodegen

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

Source from the content-addressed store, hash-verified

39}
40
41func TestCompileCodegen(t *testing.T) {
42 c := makeCompiler(t)
43 r := strings.NewReader(`counter i
44// {
45 i++
46}`)
47 _, err := c.Compile("test", r)
48 if err != nil {
49 t.Error(err)
50 }
51}

Callers

nothing calls this directly

Calls 3

makeCompilerFunction · 0.85
CompileMethod · 0.80
ErrorMethod · 0.65

Tested by

no test coverage detected