(t *testing.T)
| 26 | } |
| 27 | |
| 28 | func TestObjectPathNoNamespace(t *testing.T) { |
| 29 | rc := &kube.ReplicationController{ |
| 30 | TypeMeta: unversioned.TypeMeta{ |
| 31 | APIVersion: "v1", |
| 32 | }, |
| 33 | ObjectMeta: kube.ObjectMeta{ |
| 34 | Name: "johnson", |
| 35 | }, |
| 36 | } |
| 37 | |
| 38 | expected := "namespaces//replicationcontroller/johnson" |
| 39 | actual, err := ObjectPath(rc) |
| 40 | assert.NoError(t, err) |
| 41 | assert.Equal(t, expected, actual) |
| 42 | } |
nothing calls this directly
no test coverage detected