type TestPrintType … func (obj *TestPrintType) GetObjectKind() schema.ObjectKind { … } func (obj *TestPrintType) DeepCopyObject() runtime.Object { … } func PrintCustomType(obj *TestPrintType, options GenerateOptions) ([]metav1beta1.TableRow, error) { … } func ErrorPrintHandler(obj *TestPrintType, options GenerateOptions) ([]metav1beta1.TableRow, error) { … } func TestCustomTypePrinting(t *testing.T) { … } func TestPrintHandlerError(t *testing.T) { … }