MCPcopy
hub / github.com/redspread/spread / TestObjectPathNoNamespace

Function TestObjectPathNoNamespace

pkg/deploy/object_test.go:28–42  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

26}
27
28func 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}

Callers

nothing calls this directly

Calls 2

ObjectPathFunction · 0.85
EqualMethod · 0.45

Tested by

no test coverage detected