func TestGetServersToValidate(t *testing.T) { … } type fakeStorageFactory … func (f fakeStorageFactory) NewConfig(groupResource schema.GroupResource, example runtime.Object) (*storagebackend.ConfigForResource, error) { … } func (f fakeStorageFactory) ResourcePrefix(groupResource schema.GroupResource) string { … } func (f fakeStorageFactory) Backends() []storage.Backend { … } func (f fakeStorageFactory) Configs() []storagebackend.Config { … }