name
(t *testing.T)
| 248 | // name |
| 249 | |
| 250 | func TestPrinterPrintNameNamePart(t *testing.T) { |
| 251 | o := bytes.NewBufferString("") |
| 252 | |
| 253 | p := printer.NewPrinter(o) |
| 254 | p.Print(&name.NamePart{ |
| 255 | Value: "foo", |
| 256 | }) |
| 257 | |
| 258 | expected := "foo" |
| 259 | actual := o.String() |
| 260 | |
| 261 | if expected != actual { |
| 262 | t.Errorf("\nexpected: %s\ngot: %s\n", expected, actual) |
| 263 | } |
| 264 | } |
| 265 | |
| 266 | func TestPrinterPrintNameName(t *testing.T) { |
| 267 | o := bytes.NewBufferString("") |
nothing calls this directly
no test coverage detected
searching dependent graphs…