(t *testing.T)
| 31 | } |
| 32 | |
| 33 | func TestPrintShowURL(t *testing.T) { |
| 34 | var buffer bytes.Buffer |
| 35 | request.PrintShowURL(&buffer, "/foo", []string{"bar", "baz"}) |
| 36 | |
| 37 | output := buffer.String() |
| 38 | |
| 39 | if !regexp.MustCompile(`\s+/foo/compare/packages/bar,baz\s+`).MatchString(output) { |
| 40 | t.Errorf("Unexpected output %s", output) |
| 41 | } |
| 42 | } |
nothing calls this directly
no test coverage detected