(t *testing.T)
| 1127 | } |
| 1128 | |
| 1129 | func 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 | } |
nothing calls this directly
no test coverage detected