type testRESTMapper …
func (m *testRESTMapper) Reset() { … }
func TestGarbageCollectorConstruction(t *testing.T) { … }
type fakeAction …
func (f *fakeAction) String() string { … }
type FakeResponse …
type fakeActionHandler …
func (f *fakeActionHandler) ServeHTTP(response http.ResponseWriter, request *http.Request) { … }
func testServerAndClientConfig(handler func(http.ResponseWriter, *http.Request)) (*httptest.Server, *restclient.Config) { … }
type garbageCollector …
func setupGC(t *testing.T, config *restclient.Config) garbageCollector { … }
func getPod(podName string, ownerReferences []metav1.OwnerReference) *v1.Pod { … }
func serilizeOrDie(t *testing.T, object interface{ … }
func TestAttemptToDeleteItem(t *testing.T) { … }
func verifyGraphInvariants(scenario string, uidToNode map[types.UID]*node, t *testing.T) { … }
func createEvent(eventType eventType, selfUID string, owners []string) event { … }
func TestProcessEvent(t *testing.T) { … }
func BenchmarkReferencesDiffs(t *testing.B) { … }
func TestDependentsRace(t *testing.T) { … }
func podToGCNode(pod *v1.Pod) *node { … }
func TestAbsentOwnerCache(t *testing.T) { … }
func TestDeleteOwnerRefPatch(t *testing.T) { … }
func TestUnblockOwnerReference(t *testing.T) { … }
func TestOrphanDependentsFailure(t *testing.T) { … }
func TestGetDeletableResources(t *testing.T) { … }
func TestGarbageCollectorSync(t *testing.T) { … }
func assertMonitors(t *testing.T, gc *GarbageCollector, resources ...string) { … }
func expectSyncNotBlocked(fakeDiscoveryClient *fakeServerResources) error { … }
type fakeServerResources …
func (*fakeServerResources) ServerResourcesForGroupVersion(groupVersion string) (*metav1.APIResourceList, error) { … }
func (*fakeServerResources) ServerGroupsAndResources() ([]*metav1.APIGroup, []*metav1.APIResourceList, error) { … }
func (f *fakeServerResources) ServerPreferredResources() ([]*metav1.APIResourceList, error) { … }
func (f *fakeServerResources) setPreferredResources(resources []*metav1.APIResourceList, err error) { … }
func (f *fakeServerResources) getInterfaceUsedCount() int { … }
func (*fakeServerResources) ServerPreferredNamespacedResources() ([]*metav1.APIResourceList, error) { … }
func TestConflictingData(t *testing.T) { … }
func makeID(groupVersion string, kind string, namespace, name, uid string) objectReference { … }
type nodeTweak …
func virtual(n *node) *node { … }
func withOwners(ownerReferences ...objectReference) nodeTweak { … }
func makeNode(identity objectReference, tweaks ...nodeTweak) *node { … }
func makeAddEvent(identity objectReference, owners ...objectReference) *event { … }
func makeVirtualDeleteEvent(identity objectReference, owners ...objectReference) *event { … }
func makeDeleteEvent(identity objectReference, owners ...objectReference) *event { … }
func makeObj(identity objectReference, owners ...objectReference) *metaonly.MetadataOnlyObject { … }
func makeMetadataObj(identity objectReference, owners ...objectReference) *metav1.PartialObjectMetadata { … }
type stepContext …
type step …
func processPendingGraphChanges(count int) step { … }
func processAttemptToDelete(count int) step { … }
func insertEvent(e *event) step { … }
func processEvent(e *event) step { … }
func createObjectInClient(group, version, resource, namespace string, obj *metav1.PartialObjectMetadata) step { … }
func deleteObjectFromClient(group, version, resource, namespace, name string) step { … }
type state …
func assertState(s state) step { … }
type trackingWorkqueue …
var _ …
func newTrackingWorkqueue[T comparable]() *trackingWorkqueue[T] { … }
func (t *trackingWorkqueue[T]) Add(item T) { … }
func (t *trackingWorkqueue[T]) AddAfter(item T, duration time.Duration) { … }
func (t *trackingWorkqueue[T]) AddRateLimited(item T) { … }
func (t *trackingWorkqueue[T]) Get() (T, bool) { … }
func (t *trackingWorkqueue[T]) Done(item T) { … }
func (t *trackingWorkqueue[T]) Forget(item T) { … }
func (t *trackingWorkqueue[T]) NumRequeues(item T) int { … }
func (t *trackingWorkqueue[T]) Len() int { … }
func (t *trackingWorkqueue[T]) ShutDown() { … }
func (t *trackingWorkqueue[T]) ShutDownWithDrain() { … }
func (t *trackingWorkqueue[T]) ShuttingDown() bool { … }
func (t *trackingWorkqueue[T]) queue(item T) { … }
func (t *trackingWorkqueue[T]) dequeue(item T) { … }