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:
parent
44ff5fe9a1
commit
51e07af3f0
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user