1
0
mirror of https://github.com/labstack/echo.git synced 2024-11-28 08:38:39 +02:00

adding code coverage

This commit is contained in:
Chase Hutchins 2015-09-13 01:38:22 -07:00
parent 44ff5fe9a1
commit 51e07af3f0

View File

@ -1,10 +1,11 @@
package echo
import (
"github.com/stretchr/testify/assert"
"net/http"
"net/http/httptest"
"testing"
"github.com/stretchr/testify/assert"
)
func TestResponse(t *testing.T) {
@ -46,6 +47,9 @@ func TestResponse(t *testing.T) {
// Size
assert.EqualValues(t, len(s), r.Size())
// Committed
assert.Equal(t, true, r.Committed())
// Hijack
assert.Panics(t, func() {
r.Hijack()