MCPcopy
hub / github.com/puma/puma-dev / TestMain_execWithExitStatus_noFlag

Function TestMain_execWithExitStatus_noFlag

cmd/puma-dev/main_test.go:46–56  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

44}
45
46func 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
58func TestMain_execWithExitStatus_commandArgs(t *testing.T) {
59 StubCommandLineArgs("nosoupforyou")

Callers

nothing calls this directly

Calls 3

StubCommandLineArgsFunction · 0.85
WithStdoutCapturedFunction · 0.85
execWithExitStatusFunction · 0.85

Tested by

no test coverage detected