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
|
package echo
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/stretchr/testify/assert"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestResponse(t *testing.T) {
|
func TestResponse(t *testing.T) {
|
||||||
@ -46,6 +47,9 @@ func TestResponse(t *testing.T) {
|
|||||||
// Size
|
// Size
|
||||||
assert.EqualValues(t, len(s), r.Size())
|
assert.EqualValues(t, len(s), r.Size())
|
||||||
|
|
||||||
|
// Committed
|
||||||
|
assert.Equal(t, true, r.Committed())
|
||||||
|
|
||||||
// Hijack
|
// Hijack
|
||||||
assert.Panics(t, func() {
|
assert.Panics(t, func() {
|
||||||
r.Hijack()
|
r.Hijack()
|
||||||
|
Loading…
Reference in New Issue
Block a user