MCPcopy Create free account
hub / github.com/FairwindsOps/gemini / TestControllerQueue

Function TestControllerQueue

pkg/controller/controller_test.go:58–64  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

56}
57
58func TestControllerQueue(t *testing.T) {
59 ctrl, _ := newTestController()
60 sg := newSnapshotGroup("foo", "default")
61 ctrl.enqueue(sg, deleteTask)
62 processed := ctrl.processNextWorkItem()
63 assert.Equal(t, true, processed)
64}
65
66func TestBackupHandler(t *testing.T) {
67 ctrl, client := newTestController()

Callers

nothing calls this directly

Calls 4

newTestControllerFunction · 0.85
newSnapshotGroupFunction · 0.85
enqueueMethod · 0.80
processNextWorkItemMethod · 0.80

Tested by

no test coverage detected