1 // Copyright 2017 Manu Martinez-Almeida. All rights reserved.
2 // Use of this source code is governed by a MIT style
3 // license that can be found in the LICENSE file.
9 // CreateTestContext returns a fresh engine and context for testing purposes
10 func CreateTestContext(w http.ResponseWriter) (c *Context, r *Engine) {
12 c = r.allocateContext()