(t *testing.T)
| 3473 | } |
| 3474 | |
| 3475 | func TestPrintLabel(t *testing.T) { |
| 3476 | o := bytes.NewBufferString("") |
| 3477 | |
| 3478 | p := printer.NewPrettyPrinter(o, " ") |
| 3479 | p.Print(&stmt.Label{ |
| 3480 | LabelName: &node.Identifier{Value: "FOO"}, |
| 3481 | }) |
| 3482 | |
| 3483 | expected := `FOO:` |
| 3484 | actual := o.String() |
| 3485 | |
| 3486 | if expected != actual { |
| 3487 | t.Errorf("\nexpected: %s\ngot: %s\n", expected, actual) |
| 3488 | } |
| 3489 | } |
| 3490 | |
| 3491 | func TestPrintNamespace(t *testing.T) { |
| 3492 | o := bytes.NewBufferString("") |
nothing calls this directly
no test coverage detected
searching dependent graphs…