(t *testing.T)
| 3086 | } |
| 3087 | |
| 3088 | func 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 | |
| 3096 | func TestHandleExitCoder_Custom(t *testing.T) { |
| 3097 | cmd := buildMinimalTestCommand() |
nothing calls this directly
no test coverage detected