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

Function TestMultiSelectMap_NoItems

pkg/question/select_test.go:10–16  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

8)
9
10func TestMultiSelectMap_NoItems(t *testing.T) {
11 pa := []*testutil.PA{}
12 mockAsker, _ := testutil.NewMockAsker(t, pa)
13 selectedItem, err := question.MultiSelectMap(mockAsker, "question", []*string{}, func(item *string) string { return *item }, false)
14 assert.Nil(t, selectedItem)
15 assert.Error(t, err)
16}
17
18func TestSelectMap_NoItems(t *testing.T) {
19 pa := []*testutil.PA{}

Callers

nothing calls this directly

Calls 3

NewMockAskerFunction · 0.92
MultiSelectMapFunction · 0.92
ErrorMethod · 0.45

Tested by

no test coverage detected