MCPcopy Create free account
hub / github.com/z7zmey/php-parser / TestPrinterPrintStmtContinue

Function TestPrinterPrintStmtContinue

printer/printer_test.go:3169–3185  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

3167}
3168
3169func 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
3187func TestPrinterPrintStmtDeclareStmts(t *testing.T) {
3188 o := bytes.NewBufferString("")

Callers

nothing calls this directly

Calls 3

PrintMethod · 0.95
NewPrinterFunction · 0.92
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…