1
0
mirror of https://github.com/labstack/echo.git synced 2025-03-25 21:38:56 +02:00

Minor formatting/changes

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana 2016-08-22 08:30:46 -07:00
parent 48c42e7b90
commit 85e2816cf3
2 changed files with 4 additions and 3 deletions

View File

@ -25,10 +25,10 @@ type (
Context interface {
context.Context
// Context returns `net/context.Context`.
// Context returns `context.Context`.
Context() context.Context
// SetContext sets `net/context.Context`.
// SetContext sets `context.Context`.
SetContext(context.Context)
// Request returns `engine.Request` interface.

View File

@ -342,7 +342,8 @@ func TestContextEmbedded(t *testing.T) {
}
func TestContextStore(t *testing.T) {
c := new(echoContext)
var c Context
c = new(echoContext)
c.Set("name", "Jon Snow")
assert.Equal(t, "Jon Snow", c.Get("name"))
}