var testData … type TestStruct … func (in *TestStruct) DeepCopyObject() runtime.Object { … } func TestJSONPrinter(t *testing.T) { … } func testPrinter(t *testing.T, printer ResourcePrinter, unmarshalFunc func(data []byte, v interface{ … } func TestPrintersSuccess(t *testing.T) { … }