Esempio n. 1
0
func TestMain(m *testing.M) {
	var code int
	ts = gaetest.NewTestServer()
	code = m.Run()
	defer func() {
		ts.Done()
		os.Exit(code)
	}()
}
Esempio n. 2
0
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)
	}()
}
Esempio n. 3
0
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)
	}()
}