(t *testing.T)
| 137 | } |
| 138 | |
| 139 | func TestRequestAbsPathJoins(t *testing.T) { |
| 140 | r := (&Request{baseURL: &url.URL{}}).AbsPath("foo/bar", "baz") |
| 141 | if s := r.URL().String(); s != "foo/bar/baz" { |
| 142 | t.Errorf("trailing slash should be preserved: %s", s) |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | func TestRequestSetsNamespace(t *testing.T) { |
| 147 | r := (&Request{ |