MCPcopy
hub / github.com/cli/cli / AssertOptions

Function AssertOptions

internal/prompter/test.go:146–148  ·  view source on GitHub ↗
(t *testing.T, expected, actual []string)

Source from the content-addressed store, hash-verified

144}
145
146func AssertOptions(t *testing.T, expected, actual []string) {
147 assert.Equal(t, expected, actual)
148}
149
150func IndexFor(options []string, answer string) (int, error) {
151 for ix, a := range options {

Callers 1

TestDefaultRunFunction · 0.92

Calls 1

EqualMethod · 0.80

Tested by 1

TestDefaultRunFunction · 0.74