예제 #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
}
예제 #2
0
func ClearContextResponseWriter(context *web.Context) {
	context.ResponseWriter = new(TestResponseWriter)
}