(t *testing.T)
| 68 | } |
| 69 | |
| 70 | func 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 | |
| 85 | func TestMain_allCheck_badArg(t *testing.T) { |
| 86 | if os.Getenv("GO_TEST_SUBPROCESS") == "1" { |
nothing calls this directly
no test coverage detected