Skip to content

Commit

Permalink
remove debug print statements from test code (gin-gonic#1540)
Browse files Browse the repository at this point in the history
  • Loading branch information
Iskander (Alex) Sharipov authored and thinkerou committed Sep 12, 2018
1 parent 500ebd9 commit df1e17c
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions tree_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@ func TestTreeAddAndGet(t *testing.T) {
tree.addRoute(route, fakeHandler(route))
}

//printChildren(tree, "")

checkRequests(t, tree, testRequests{
{"/a", false, "/a", nil},
{"/", true, "", nil},
Expand Down Expand Up @@ -168,8 +166,6 @@ func TestTreeWildcard(t *testing.T) {
tree.addRoute(route, fakeHandler(route))
}

//printChildren(tree, "")

checkRequests(t, tree, testRequests{
{"/", false, "/", nil},
{"/cmd/test/", false, "/cmd/:tool/", Params{Param{"tool", "test"}}},
Expand Down Expand Up @@ -208,7 +204,6 @@ func TestUnescapeParameters(t *testing.T) {
tree.addRoute(route, fakeHandler(route))
}

//printChildren(tree, "")
unescape := true
checkRequests(t, tree, testRequests{
{"/", false, "/", nil},
Expand Down Expand Up @@ -260,8 +255,6 @@ func testRoutes(t *testing.T, routes []testRoute) {
t.Errorf("unexpected panic for route '%s': %v", route.path, recv)
}
}

//printChildren(tree, "")
}

func TestTreeWildcardConflict(t *testing.T) {
Expand Down Expand Up @@ -328,8 +321,6 @@ func TestTreeDupliatePath(t *testing.T) {
}
}

//printChildren(tree, "")

checkRequests(t, tree, testRequests{
{"/", false, "/", nil},
{"/doc/", false, "/doc/", nil},
Expand Down Expand Up @@ -444,8 +435,6 @@ func TestTreeTrailingSlashRedirect(t *testing.T) {
}
}

//printChildren(tree, "")

tsrRoutes := [...]string{
"/hi/",
"/b",
Expand Down

0 comments on commit df1e17c

Please sign in to comment.