func getJSON(version, kind, name string) []byte { … } func getListJSON(version, kind string, items ...[]byte) []byte { … } func getObject(version, kind, name string) *unstructured.Unstructured { … } func getObjectFromJSON(b []byte) *unstructured.Unstructured { … } func getClientServer(h func(http.ResponseWriter, *http.Request)) (Interface, *httptest.Server, error) { … } func TestList(t *testing.T) { … } func TestWatchList(t *testing.T) { … } func TestGet(t *testing.T) { … } func TestDelete(t *testing.T) { … } func TestDeleteCollection(t *testing.T) { … } func TestCreate(t *testing.T) { … } func TestUpdate(t *testing.T) { … } func TestWatch(t *testing.T) { … } func TestPatch(t *testing.T) { … } func TestInvalidSegments(t *testing.T) { … }