Files
openchamber-android-native/third_party/mygo/ui/main_test.go
T

21 lines
472 B
Go
Raw Normal View History

package ui
import (
"flag"
"os"
"testing"
)
// TestMain has the tests' frames check what the engine keeps to do less
// (checkFrames) and that what the view built stays as built (checkBuilt),
// and the benchmarks' frames cost what an app's do.
func TestMain(m *testing.M) {
flag.Parse()
if f := flag.Lookup("test.bench"); f == nil || f.Value.String() == "" {
checkFrames = true
checkBuilt = checkBuiltFields
}
code := m.Run()
reportBuilt()
os.Exit(code)
}