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

Function TestHandleExitCoder_Default

command_test.go:3088–3094  ·  command_test.go::TestHandleExitCoder_Default
(t *testing.T)

Source from the content-addressed store, hash-verified

3086}
3087
3088func TestHandleExitCoder_Default(t *testing.T) {
3089 app := buildMinimalTestCommand()
3090 _ = app.handleExitCoder(context.Background(), Exit("Default Behavior Error", 42))
3091
3092 output := fakeErrWriter.String()
3093 assert.Contains(t, output, "Default", "Expected Default Behavior from Error Handler")
3094}
3095
3096func TestHandleExitCoder_Custom(t *testing.T) {
3097 cmd := buildMinimalTestCommand()

Callers

nothing calls this directly

Calls 4

buildMinimalTestCommandFunction · 0.85
ExitFunction · 0.85
handleExitCoderMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected