(t *testing.T)
| 3167 | } |
| 3168 | |
| 3169 | func TestPrinterPrintStmtContinue(t *testing.T) { |
| 3170 | o := bytes.NewBufferString("") |
| 3171 | |
| 3172 | p := printer.NewPrinter(o) |
| 3173 | p.Print(&stmt.Continue{ |
| 3174 | Expr: &scalar.Lnumber{ |
| 3175 | Value: "1", |
| 3176 | }, |
| 3177 | }) |
| 3178 | |
| 3179 | expected := `continue 1;` |
| 3180 | actual := o.String() |
| 3181 | |
| 3182 | if expected != actual { |
| 3183 | t.Errorf("\nexpected: %s\ngot: %s\n", expected, actual) |
| 3184 | } |
| 3185 | } |
| 3186 | |
| 3187 | func TestPrinterPrintStmtDeclareStmts(t *testing.T) { |
| 3188 | o := bytes.NewBufferString("") |
nothing calls this directly
no test coverage detected
searching dependent graphs…