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

Function TestPrintScalarEncapsedStringPart

printer/pretty_printer_test.go:331–340  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

329}
330
331func TestPrintScalarEncapsedStringPart(t *testing.T) {
332 o := bytes.NewBufferString("")
333
334 p := printer.NewPrettyPrinter(o, " ")
335 p.Print(&scalar.EncapsedStringPart{Value: "hello world"})
336
337 if o.String() != `hello world` {
338 t.Errorf("TestPrintScalarEncapsedStringPart is failed\n")
339 }
340}
341
342func TestPrintScalarEncapsed(t *testing.T) {
343 o := bytes.NewBufferString("")

Callers

nothing calls this directly

Calls 3

PrintMethod · 0.95
NewPrettyPrinterFunction · 0.92
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…