(t *testing.T)
| 116 | } |
| 117 | |
| 118 | func TestPrintString(t *testing.T) { |
| 119 | for _, test := range stringTests { |
| 120 | ast, err := Parse(nil, strings.NewReader(test[0]), nil, nil, AllowGenerics) |
| 121 | if err != nil { |
| 122 | t.Error(err) |
| 123 | continue |
| 124 | } |
| 125 | if got := NodeString(ast); got != test[1] { |
| 126 | t.Errorf("%q: got %q", test[1], got) |
| 127 | } |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | func testOut() io.Writer { |
| 132 | if testing.Verbose() { |
nothing calls this directly
no test coverage detected