MCPcopy
hub / github.com/urfave/cli / TestSuggestFlagFromErrorNoSuggestion

Function TestSuggestFlagFromErrorNoSuggestion

suggestions_test.go:117–129  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

115}
116
117func TestSuggestFlagFromErrorNoSuggestion(t *testing.T) {
118 // Given
119 app := buildExtendedTestCommand()
120
121 // When
122 _, err := app.suggestFlagFromError(
123 errors.New(providedButNotDefinedErrMsg+""),
124 "",
125 )
126
127 // Then
128 assert.Error(t, err)
129}
130
131func TestSuggestCommand(t *testing.T) {
132 // Given

Callers

nothing calls this directly

Calls 3

buildExtendedTestCommandFunction · 0.85
suggestFlagFromErrorMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected