var zero …
var sandboxImage …
func newRealImageGCManager(policy ImageGCPolicy, mockStatsProvider stats.Provider) (*realImageGCManager, *containertest.FakeRuntime) { … }
func (im *realImageGCManager) imageRecordsLen() int { … }
func (im *realImageGCManager) getImageRecord(name string) (*imageRecord, bool) { … }
func (im *realImageGCManager) getImageRecordWithRuntimeHandlerInImageCriAPIFeatureGate(name, runtimeHandler string) (*imageRecord, bool) { … }
func imageID(id int) string { … }
func imageName(id int) string { … }
func makeImage(id int, size int64) container.Image { … }
func makeImageWithRuntimeHandler(id int, size int64, runtimeHandler string) container.Image { … }
func makeContainer(id int) *container.Container { … }
func TestDetectImagesInitialDetect(t *testing.T) { … }
func TestDetectImagesInitialDetectWithRuntimeHandlerInImageCriAPIFeatureGate(t *testing.T) { … }
func TestDetectImagesWithNewImage(t *testing.T) { … }
func TestDeleteUnusedImagesExemptSandboxImage(t *testing.T) { … }
func TestDeletePinnedImage(t *testing.T) { … }
func TestDoNotDeletePinnedImage(t *testing.T) { … }
func TestDeleteUnPinnedImage(t *testing.T) { … }
func TestAllPinnedImages(t *testing.T) { … }
func TestDetectImagesContainerStopped(t *testing.T) { … }
func TestDetectImagesWithRemovedImages(t *testing.T) { … }
func TestFreeSpaceImagesInUseContainersAreIgnored(t *testing.T) { … }
func TestDeleteUnusedImagesRemoveAllUnusedImages(t *testing.T) { … }
func TestDeleteUnusedImagesLimitByImageLiveTime(t *testing.T) { … }
func TestFreeSpaceRemoveByLeastRecentlyUsed(t *testing.T) { … }
func TestFreeSpaceTiesBrokenByDetectedTime(t *testing.T) { … }
func TestGarbageCollectBelowLowThreshold(t *testing.T) { … }
func TestGarbageCollectCadvisorFailure(t *testing.T) { … }
func TestGarbageCollectBelowSuccess(t *testing.T) { … }
func TestGarbageCollectNotEnoughFreed(t *testing.T) { … }
func TestGarbageCollectImageNotOldEnough(t *testing.T) { … }
func getImagesAndFreeSpace(ctx context.Context, t *testing.T, assert *assert.Assertions, im *realImageGCManager, fakeRuntime *containertest.FakeRuntime, spaceToFree, expectedSpaceFreed int64, imagesLen int, freeTime time.Time) { … }
func TestGarbageCollectImageTooOld(t *testing.T) { … }
func TestGarbageCollectImageMaxAgeDisabled(t *testing.T) { … }
func TestValidateImageGCPolicy(t *testing.T) { … }
func uint64Ptr(i uint64) *uint64 { … }