Merge pull request #724 from chiffa-org/redundant_context_import

Move golang.org/x/net/context.Context interface implementation check to tests
This commit is contained in:
Javier Provecho Fernandez 2016-12-05 10:55:06 +01:00 committed by GitHub
commit 273e43a27a
2 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,6 @@ import (
"github.com/gin-gonic/gin/binding" "github.com/gin-gonic/gin/binding"
"github.com/gin-gonic/gin/render" "github.com/gin-gonic/gin/render"
"github.com/manucorporat/sse" "github.com/manucorporat/sse"
"golang.org/x/net/context"
) )
// Content-Type MIME of the most common data formats // Content-Type MIME of the most common data formats
@ -50,8 +49,6 @@ type Context struct {
Accepted []string Accepted []string
} }
var _ context.Context = &Context{}
/************************************/ /************************************/
/********** CONTEXT CREATION ********/ /********** CONTEXT CREATION ********/
/************************************/ /************************************/

View File

@ -17,8 +17,11 @@ import (
"github.com/manucorporat/sse" "github.com/manucorporat/sse"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"golang.org/x/net/context"
) )
var _ context.Context = &Context{}
// Unit tests TODO // Unit tests TODO
// func (c *Context) File(filepath string) { // func (c *Context) File(filepath string) {
// func (c *Context) Negotiate(code int, config Negotiate) { // func (c *Context) Negotiate(code int, config Negotiate) {