github.com/goplusjs/gopherjs@v1.2.6-0.20211206034512-f187917453b8/tests/main/main_test.go (about) 1 package main 2 3 import "testing" 4 5 func TestNotRunMain(t *testing.T) { 6 if mainDidRun { 7 t.Error("main function did run") 8 } 9 }