MCPcopy
hub / github.com/tinygo-org/tinygo / main

Function main

testdata/testing.go:75–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73}
74
75func 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
89var errMain = errors.New("testing: unexpected use of func Main")
90

Callers

nothing calls this directly

Calls 3

matchStringOnlyFuncType · 0.85
SetMethod · 0.45
RunMethod · 0.45

Tested by

no test coverage detected