(ctx Context, routePath string)
| 193 | } |
| 194 | |
| 195 | func (r *router) MatchPath(ctx Context, routePath string) bool { |
| 196 | if root := r.Nodes[ctx.Request().Method]; root != nil { |
| 197 | n := root.getNode(routePath) |
| 198 | return n == ctx.RouterNode().Node() |
| 199 | } |
| 200 | return false |
| 201 | } |
| 202 | |
| 203 | func (r *router) getNode(httpMethod string, routePath string) *Node { |
| 204 | if root := r.Nodes[httpMethod]; root != nil { |
nothing calls this directly
no test coverage detected