MCPcopy Create free account
hub / github.com/codnect/procyon / TestCreationState_RemoveFromPreparation

Function TestCreationState_RemoveFromPreparation

component/state_test.go:119–129  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

117}
118
119func TestCreationState_RemoveFromPreparation(t *testing.T) {
120 // given
121 state := newCreationState()
122 state.currentlyInCreation["anyInstanceName"] = struct{}{}
123
124 // when
125 state.removeFromPreparation("anyInstanceName")
126
127 // then
128 assert.NotContains(t, state.currentlyInCreation, "anyInstanceName")
129}

Callers

nothing calls this directly

Calls 2

newCreationStateFunction · 0.85
removeFromPreparationMethod · 0.80

Tested by

no test coverage detected