func checkObject(t *testing.T, store manager.Store, ns, name string, shouldExist bool) { … } func noObjectTTL() (time.Duration, bool) { … } func getSecret(fakeClient clientset.Interface) manager.GetObjectFunc { … } type envSecrets … type secretsToAttach … func podWithSecrets(ns, podName string, toAttach secretsToAttach) *v1.Pod { … } func TestCacheBasedSecretManager(t *testing.T) { … }