mirror of
https://github.com/labstack/echo.git
synced 2024-12-22 20:06:21 +02:00
acc91b28f3
* Improve test coverage * add engine package to coverage profile
19 lines
417 B
Go
19 lines
417 B
Go
package fasthttp
|
|
|
|
import (
|
|
"github.com/labstack/echo/engine/test"
|
|
"github.com/stretchr/testify/assert"
|
|
fast "github.com/valyala/fasthttp"
|
|
"testing"
|
|
)
|
|
|
|
func TestURL(t *testing.T) {
|
|
uri := &fast.URI{}
|
|
uri.Parse([]byte("github.com"), []byte("/labstack/echo?param1=value1¶m1=value2¶m2=value3"))
|
|
mUrl := &URL{uri}
|
|
test.URLTest(t, mUrl)
|
|
|
|
mUrl.reset(&fast.URI{})
|
|
assert.Equal(t, "", string(mUrl.Host()))
|
|
}
|