(t *testing.T)
| 226 | } |
| 227 | |
| 228 | func TestRequestVersionedParams(t *testing.T) { |
| 229 | r := (&Request{content: ContentConfig{GroupVersion: &v1.SchemeGroupVersion}}).Param("foo", "a") |
| 230 | if !reflect.DeepEqual(r.params, url.Values{"foo": []string{"a"}}) { |
| 231 | t.Errorf("should have set a param: %#v", r) |
| 232 | } |
| 233 | r.VersionedParams(&v1.PodLogOptions{Follow: true, Container: "bar"}, scheme.ParameterCodec) |
| 234 | |
| 235 | if !reflect.DeepEqual(r.params, url.Values{ |
| 236 | "foo": []string{"a"}, |
| 237 | "container": []string{"bar"}, |
| 238 | "follow": []string{"true"}, |
| 239 | }) { |
| 240 | t.Errorf("should have set a param: %#v", r) |
| 241 | } |
| 242 | } |
| 243 | |
| 244 | func TestRequestVersionedParamsFromListOptions(t *testing.T) { |
| 245 | r := &Request{content: ContentConfig{GroupVersion: &v1.SchemeGroupVersion}} |
nothing calls this directly
no test coverage detected