mirror of
https://github.com/labstack/echo.git
synced 2024-12-22 20:06:21 +02:00
17 lines
290 B
Go
17 lines
290 B
Go
|
package standard
|
||
|
|
||
|
import (
|
||
|
"github.com/labstack/echo/engine/test"
|
||
|
"github.com/stretchr/testify/assert"
|
||
|
"net/http"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestHeader(t *testing.T) {
|
||
|
header := &Header{http.Header{}}
|
||
|
test.HeaderTest(t, header)
|
||
|
|
||
|
header.reset(http.Header{})
|
||
|
assert.Len(t, header.Keys(), 0)
|
||
|
}
|