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

Function TestDeleteHandler

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

Source from the content-addressed store, hash-verified

171}
172
173func TestDeleteHandler(t *testing.T) {
174 ctrl, _ := newTestController()
175
176 event := workItem{
177 name: "foo",
178 namespace: "foo",
179 snapshotGroup: newSnapshotGroup("foo", "default"),
180 task: deleteTask,
181 }
182 err := ctrl.syncHandler(event)
183 assert.NoError(t, err)
184}
185
186func TestPreexistingPVC(t *testing.T) {
187 ctrl, client := newTestController()

Callers

nothing calls this directly

Calls 3

newTestControllerFunction · 0.85
newSnapshotGroupFunction · 0.85
syncHandlerMethod · 0.80

Tested by

no test coverage detected