type TestRuntimeCache … // UpdateCacheWithLock updates the cache with the lock. func (r *TestRuntimeCache) UpdateCacheWithLock() error { … } // GetCachedPods returns the cached pods. func (r *TestRuntimeCache) GetCachedPods() []*Pod { … } // NewTestRuntimeCache creates a new instance of TestRuntimeCache. func NewTestRuntimeCache(getter podsGetter) *TestRuntimeCache { … }