func Test_newResourceExpirationEvaluator(t *testing.T) { … } func storageRemovedIn(major, minor int) *removedInStorage { … } func storageNeverRemoved() *removedInStorage { … } type removedInStorage … func (r *removedInStorage) New() runtime.Object { … } func (r *removedInStorage) Destroy() { … } type defaultObj … func (r *defaultObj) GetObjectKind() schema.ObjectKind { … } func (r *defaultObj) DeepCopyObject() runtime.Object { … } type removedInObj … func (r *removedInObj) GetObjectKind() schema.ObjectKind { … } func (r *removedInObj) DeepCopyObject() runtime.Object { … } func (r *removedInObj) APILifecycleRemoved() (major, minor int) { … } func storageIntroducedIn(major, minor int) *introducedInStorage { … } type introducedInStorage … func (r *introducedInStorage) New() runtime.Object { … } func (r *introducedInStorage) Destroy() { … } type IntroducedInObj … func (r *IntroducedInObj) GetObjectKind() schema.ObjectKind { … } func (r *IntroducedInObj) DeepCopyObject() runtime.Object { … } func (r *IntroducedInObj) APILifecycleIntroduced() (major, minor int) { … } func Test_resourceExpirationEvaluator_shouldServe(t *testing.T) { … } type dummyConvertor … func (d *dummyConvertor) ConvertToVersion(in runtime.Object, gv runtime.GroupVersioner) (runtime.Object, error) { … } func checkErr(t *testing.T, actual error, expected string) { … } func Test_removeDeletedKinds(t *testing.T) { … } func Test_shouldRemoveResource(t *testing.T) { … }