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

Function TestMain_allCheck_versionFlag

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

Source from the content-addressed store, hash-verified

68}
69
70func TestMain_allCheck_versionFlag(t *testing.T) {
71 if os.Getenv("GO_TEST_SUBPROCESS") == "1" {
72 StubCommandLineArgs("-V")
73 allCheck()
74
75 return
76 }
77
78 cmd := exec.Command(os.Args[0], "-test.run=TestMain_allCheck_versionFlag")
79 cmd.Env = append(os.Environ(), "GO_TEST_SUBPROCESS=1")
80 err := cmd.Run()
81
82 assert.Nil(t, err)
83}
84
85func TestMain_allCheck_badArg(t *testing.T) {
86 if os.Getenv("GO_TEST_SUBPROCESS") == "1" {

Callers

nothing calls this directly

Calls 2

StubCommandLineArgsFunction · 0.85
allCheckFunction · 0.85

Tested by

no test coverage detected