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

Function newTestController

pkg/controller/controller_test.go:51–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49}
50
51func newTestController() (*Controller, *kube.Client) {
52 kube.SetFakeClient()
53 ctrl := NewController()
54 ctrl.snapshotReadyTimeoutSeconds = 1
55 return ctrl, kube.GetClient()
56}
57
58func TestControllerQueue(t *testing.T) {
59 ctrl, _ := newTestController()

Callers 5

TestControllerQueueFunction · 0.85
TestBackupHandlerFunction · 0.85
TestRestoreHandlerFunction · 0.85
TestDeleteHandlerFunction · 0.85
TestPreexistingPVCFunction · 0.85

Calls 3

SetFakeClientFunction · 0.92
GetClientFunction · 0.92
NewControllerFunction · 0.85

Tested by

no test coverage detected