Exemplo n.º 1
0
func CreateWebContext() *web.Context {
	context := new(web.Context)
	context.Server = new(web.Server)
	context.Server.Env = map[string]interface{}{}
	context.Server.Env["state"] = CreateAndPopulateTestState()
	context.ResponseWriter = new(TestResponseWriter)

	return context
}