func TestMain(m *testing.M) { var code int ts = gaetest.NewTestServer() code = m.Run() defer func() { ts.Done() os.Exit(code) }() }
func TestMain(m *testing.M) { var code int instance = NewApp() ts = gaetest.NewTestServer() instance.Init(ts.GET("/dummy").Request) code = m.Run() defer func() { ts.Done() os.Exit(code) }() }
func TestMain(m *testing.M) { var code int ts = gaetest.NewTestServer() imageKind = RegisterImageCacheKind("test") urlCacheKind = RegisterURLCacheKind("test") code = m.Run() defer func() { ts.Done() os.Exit(code) }() }