()
| 73 | } |
| 74 | |
| 75 | func main() { |
| 76 | if testing.Testing() { |
| 77 | println("not running a test at the moment, testing.Testing() should return false") |
| 78 | } |
| 79 | testing.Init() |
| 80 | flag.Set("test.run", ".*/B") |
| 81 | m := testing.MainStart(matchStringOnly(fakeMatchString /*regexp.MatchString*/), tests, benchmarks, fuzzes, examples) |
| 82 | |
| 83 | exitcode := m.Run() |
| 84 | if exitcode != 0 { |
| 85 | println("exitcode:", exitcode) |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | var errMain = errors.New("testing: unexpected use of func Main") |
| 90 |
nothing calls this directly
no test coverage detected