MCPcopy Create free account
hub / github.com/github/gh-aw / TestShowInteractiveList_EmptyItems

Function TestShowInteractiveList_EmptyItems

pkg/console/list_test.go:19–24  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

17}
18
19func TestShowInteractiveList_EmptyItems(t *testing.T) {
20 items := []ListItem{}
21 _, err := ShowInteractiveList("Test", items)
22 require.Error(t, err)
23 assert.Contains(t, err.Error(), "no items to display")
24}
25
26// Note: Full interactive list testing requires TTY and cannot be automated.
27// Manual testing should be performed to verify:

Callers

nothing calls this directly

Calls 2

ShowInteractiveListFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected