1
0
mirror of https://github.com/labstack/echo.git synced 2024-12-26 20:54:00 +02:00
echo/engine/standard/url_test.go
Oleg Lobanov acc91b28f3 Improve test coverage (#544)
* Improve test coverage

* add engine package to coverage profile
2016-06-05 16:17:01 -07:00

18 lines
360 B
Go

package standard
import (
"github.com/labstack/echo/engine/test"
"github.com/stretchr/testify/assert"
"net/url"
"testing"
)
func TestURL(t *testing.T) {
u, _ := url.Parse("https://github.com/labstack/echo?param1=value1&param1=value2&param2=value3")
mUrl := &URL{u, nil}
test.URLTest(t, mUrl)
mUrl.reset(&url.URL{})
assert.Equal(t, "", mUrl.Host)
}