func newTableCRD() *apiextensionsv1.CustomResourceDefinition { … } func newTableInstance(name string) *unstructured.Unstructured { … } func TestTableGet(t *testing.T) { … } // TestColumnsPatch tests the case that a CRD was created with no top-level or // per-version columns. One should be able to PATCH the CRD setting per-version columns. func TestColumnsPatch(t *testing.T) { … } // TestPatchCleanTopLevelColumns tests the case that a CRD was created with top-level columns. // One should be able to PATCH the CRD cleaning the top-level columns and setting per-version // columns. func TestPatchCleanTopLevelColumns(t *testing.T) { … } func abs(x float64) float64 { … }