(t *testing.T)
| 44 | } |
| 45 | |
| 46 | func TestMain_execWithExitStatus_noFlag(t *testing.T) { |
| 47 | StubCommandLineArgs() |
| 48 | assert.False(t, *fVersion) |
| 49 | |
| 50 | execStdOut := WithStdoutCaptured(func() { |
| 51 | result := execWithExitStatus() |
| 52 | assert.Equal(t, false, result.shouldExit) |
| 53 | }) |
| 54 | |
| 55 | assert.Equal(t, "", execStdOut) |
| 56 | } |
| 57 | |
| 58 | func TestMain_execWithExitStatus_commandArgs(t *testing.T) { |
| 59 | StubCommandLineArgs("nosoupforyou") |
nothing calls this directly
no test coverage detected