mirror of
https://github.com/labstack/echo.git
synced 2025-09-16 09:16:29 +02:00
adding code coverage
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user