MCPcopy
hub / github.com/kubernetes/client-go / TestRequestAbsPathJoins

Function TestRequestAbsPathJoins

rest/request_test.go:139–144  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

137}
138
139func 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
146func TestRequestSetsNamespace(t *testing.T) {
147 r := (&Request{

Callers

nothing calls this directly

Calls 4

AbsPathMethod · 0.80
URLMethod · 0.80
StringMethod · 0.65
ErrorfMethod · 0.65

Tested by

no test coverage detected