var testPodName … var testNamespace … var testPodUID … var otherNamespace … var ephemeralVolumeName … var testPod … var testPodWithEphemeral … var testPodEphemeralClaim … var conflictingClaim … var otherNamespaceClaim … func init() { … } func TestSyncHandler(t *testing.T) { … } func makePVC(name, namespace string, owner *metav1.OwnerReference) *v1.PersistentVolumeClaim { … } func makeEphemeralVolume(name string) *v1.Volume { … } func makePod(name, namespace string, uid types.UID, volumes ...v1.Volume) *v1.Pod { … } func podKey(pod *v1.Pod) string { … } func makeOwnerReference(pod *v1.Pod, isController bool) *metav1.OwnerReference { … } func sortPVCs(pvcs []v1.PersistentVolumeClaim) []v1.PersistentVolumeClaim { … } func createTestClient(objects ...runtime.Object) *fake.Clientset { … } type expectedMetrics … func expectMetrics(t *testing.T, em expectedMetrics) { … } func handleErr(t *testing.T, err error, metricName string) { … } func setupMetrics() { … }