mirror of
https://github.com/labstack/echo.git
synced 2025-12-03 22:59:09 +02:00
committed by
Vishal Rana
parent
b85f9dd147
commit
07c0cf21f0
@@ -375,6 +375,12 @@ func TestEchoHTTPError(t *testing.T) {
|
||||
assert.Equal(t, m, he.Error())
|
||||
}
|
||||
|
||||
func TestEchoServer(t *testing.T) {
|
||||
e := New()
|
||||
s := e.Server(":1323")
|
||||
assert.IsType(t, &http.Server{}, s)
|
||||
}
|
||||
|
||||
func testMethod(t *testing.T, method, path string, e *Echo) {
|
||||
m := fmt.Sprintf("%c%s", method[0], strings.ToLower(method[1:]))
|
||||
p := reflect.ValueOf(path)
|
||||
|
||||
Reference in New Issue
Block a user