removed unused test
This commit is contained in:
parent
cdee276905
commit
8ecd10eff8
1 changed files with 0 additions and 11 deletions
|
@ -7,17 +7,6 @@ import (
|
|||
"testing"
|
||||
)
|
||||
|
||||
func testWebServer(t *testing.T) {
|
||||
router := New()
|
||||
Must(router.HandleFunc(http.MethodGet, "/:name", func(response http.ResponseWriter, request *http.Request, info RoutingInfo) {
|
||||
response.Write([]byte("name: " + info.Parameters["name"]))
|
||||
}))
|
||||
err := http.ListenAndServe("localhost:8080", router)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestRouterInvalidPath(t *testing.T) {
|
||||
router := New()
|
||||
if err := router.HandleFunc(http.MethodGet, "missing/slash", emptyHandlerFunction); err == nil {
|
||||
|
|
Loading…
Add table
Reference in a new issue