From 111d65a5b4e2c7ae6c4d94a247020164392ce921 Mon Sep 17 00:00:00 2001 From: Vishal Rana Date: Wed, 16 Mar 2016 16:15:40 -0700 Subject: [PATCH] Fixed engine.test Signed-off-by: Vishal Rana --- echo.go | 4 ++-- test/header.go | 4 ---- test/request.go | 4 ---- test/response.go | 4 ---- test/url.go | 4 ---- 5 files changed, 2 insertions(+), 18 deletions(-) diff --git a/echo.go b/echo.go index 552caac8..906ed351 100644 --- a/echo.go +++ b/echo.go @@ -292,7 +292,7 @@ func (e *Echo) Debug() bool { return e.debug } -// Pre adds middleware to the chain which is runs before router. +// Pre adds middleware to the chain which is run before router. func (e *Echo) Pre(middleware ...Middleware) { e.middleware = append(e.middleware, middleware...) e.head = e.pristineHead @@ -303,7 +303,7 @@ func (e *Echo) Pre(middleware ...Middleware) { } } -// Use adds middleware to the chain which is runs after router. +// Use adds middleware to the chain which is run after router. func (e *Echo) Use(middleware ...Middleware) { e.middleware = append(e.middleware, middleware...) e.head = e.pristineHead diff --git a/test/header.go b/test/header.go index 688e11ef..18a1cdc8 100644 --- a/test/header.go +++ b/test/header.go @@ -24,10 +24,6 @@ func (h *Header) Set(key, val string) { h.header.Set(key, val) } -func (h *Header) Object() interface{} { - return h.header -} - func (h *Header) reset(hdr http.Header) { h.header = hdr } diff --git a/test/request.go b/test/request.go index 34ea2578..710fe200 100644 --- a/test/request.go +++ b/test/request.go @@ -98,10 +98,6 @@ func (r *Request) MultipartForm() (*multipart.Form, error) { return m, nil } -func (r *Request) Object() interface{} { - return r.request -} - func (r *Request) reset(req *http.Request, h engine.Header, u engine.URL) { r.request = req r.header = h diff --git a/test/response.go b/test/response.go index 460252d5..520e5ecf 100644 --- a/test/response.go +++ b/test/response.go @@ -80,10 +80,6 @@ func (r *Response) Writer() io.Writer { return r.writer } -func (r *Response) Object() interface{} { - return r.response -} - func (r *Response) reset(w http.ResponseWriter, h engine.Header) { r.response = w r.header = h diff --git a/test/url.go b/test/url.go index 277df0e4..57a7d036 100644 --- a/test/url.go +++ b/test/url.go @@ -32,10 +32,6 @@ func (u *URL) QueryString() string { return u.url.RawQuery } -func (u *URL) Object() interface{} { - return u.url -} - func (u *URL) reset(url *url.URL) { u.url = url }