type conditionMergeTestCase … func TestMergeResizeCondition(t *testing.T) { … } func TestResizeFunctions(t *testing.T) { … } func TestCreatePVCPatch(t *testing.T) { … } type pvcModifier … func (m pvcModifier) get() *v1.PersistentVolumeClaim { … } func makePVC(conditions []v1.PersistentVolumeClaimCondition) pvcModifier { … } func (m pvcModifier) withStorageResourceStatus(status v1.ClaimResourceStatus) pvcModifier { … } func (m pvcModifier) withResourceStatus(resource v1.ResourceName, status v1.ClaimResourceStatus) pvcModifier { … }