Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ permissions:
contents: read # to fetch code (actions/checkout)

env:
LATEST_GO_VERSION: "1.26"
LATEST_GO_VERSION: "1.27"

# https://github.com/actions/checkout/commit/df4cb1c069e1874edd31b4311f1884172cec0e10
CHECKOUT_ACTION: &checkout_action actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/echo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ permissions:
contents: read # to fetch code (actions/checkout)

env:
LATEST_GO_VERSION: "1.26"
LATEST_GO_VERSION: "1.27"

# https://github.com/actions/checkout/commit/df4cb1c069e1874edd31b4311f1884172cec0e10
CHECKOUT_ACTION: &checkout_action actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
Expand All @@ -33,7 +33,7 @@ jobs:
# Echo tests with last four major releases (unless there are pressing vulnerabilities)
# As we depend on `golang.org/x/` libraries which only support the last 2 Go releases, we could have situations when
# we derive from the last four major releases promise.
go: ["1.25", "1.26"]
go: ["1.25", "1.26", "1.27"]
name: ${{ matrix.os }} @ Go ${{ matrix.go }}
runs-on: ${{ matrix.os }}
steps:
Expand Down
13 changes: 0 additions & 13 deletions route_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,6 @@ func TestHandlerName(t *testing.T) {
}
}

func TestHandlerName_differentFuncSameName(t *testing.T) {
Comment thread
aldas marked this conversation as resolved.
handlerCreator := func(name string) HandlerFunc {
return func(c *Context) error {
return c.String(http.StatusTeapot, name)
}
}
h1 := handlerCreator("name1")
assert.Equal(t, "github.com/labstack/echo/v5.TestHandlerName_differentFuncSameName.TestHandlerName_differentFuncSameName.func1.func2", HandlerName(h1))

h2 := handlerCreator("name2")
assert.Equal(t, "github.com/labstack/echo/v5.TestHandlerName_differentFuncSameName.TestHandlerName_differentFuncSameName.func1.func3", HandlerName(h2))
}

func TestRoute_ToRouteInfo(t *testing.T) {
var testCases = []struct {
expect RouteInfo
Expand Down
Loading