MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / TestPromptScope_NoItems

Function TestPromptScope_NoItems

pkg/cmd/project/variables/shared/input_test.go:81–91  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

79}
80
81func TestPromptScope_NoItems(t *testing.T) {
82 pa := []*testutil.PA{}
83
84 asker, checkRemainingPrompts := testutil.NewMockAsker(t, pa)
85
86 selectedValue, err := shared.PromptScope(asker, "Test", nil, nil)
87
88 assert.NoError(t, err)
89 checkRemainingPrompts()
90 assert.Nil(t, selectedValue)
91}
92
93func TestPromptScope_HasItems(t *testing.T) {
94 pa := []*testutil.PA{

Callers

nothing calls this directly

Calls 2

NewMockAskerFunction · 0.92
PromptScopeFunction · 0.92

Tested by

no test coverage detected