MCPcopy Index your code
hub / github.com/google/mtail / TestCodeGenFromAST

Function TestCodeGenFromAST

internal/runtime/compiler/codegen/codegen_test.go:1129–1138  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1127}
1128
1129func TestCodeGenFromAST(t *testing.T) {
1130 for _, tc := range testCodeGenASTs {
1131 tc := tc
1132 t.Run(tc.name, func(t *testing.T) {
1133 obj, err := codegen.CodeGen(tc.name, tc.ast)
1134 testutil.FatalIfErr(t, err)
1135 testutil.ExpectNoDiff(t, tc.prog, obj.Program, testutil.AllowUnexported(code.Instr{}))
1136 })
1137 }
1138}

Callers

nothing calls this directly

Calls 5

CodeGenFunction · 0.92
FatalIfErrFunction · 0.92
ExpectNoDiffFunction · 0.92
AllowUnexportedFunction · 0.92
RunMethod · 0.45

Tested by

no test coverage detected