diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 528786df3..87342283a 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -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 diff --git a/.github/workflows/echo.yml b/.github/workflows/echo.yml index f294bf2a9..caaff30c0 100644 --- a/.github/workflows/echo.yml +++ b/.github/workflows/echo.yml @@ -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 @@ -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: diff --git a/route_test.go b/route_test.go index 06843fd99..8e2f170ee 100644 --- a/route_test.go +++ b/route_test.go @@ -66,19 +66,6 @@ func TestHandlerName(t *testing.T) { } } -func TestHandlerName_differentFuncSameName(t *testing.T) { - 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