Test_RoutePatternMatch_InvalidRegexHandlerPanics verifies RoutePatternMatch also validates RegexHandler configuration.
(t *testing.T)
| 764 | |
| 765 | // Test_RoutePatternMatch_InvalidRegexHandlerPanics verifies RoutePatternMatch also validates RegexHandler configuration. |
| 766 | func Test_RoutePatternMatch_InvalidRegexHandlerPanics(t *testing.T) { |
| 767 | t.Parallel() |
| 768 | |
| 769 | require.PanicsWithValue(t, "fiber: Config.RegexHandler must be a non-nil function", func() { |
| 770 | RoutePatternMatch("/api/123", "/api/:id<regex(\\d+)>", Config{RegexHandler: "invalid"}) |
| 771 | }) |
| 772 | } |
nothing calls this directly
no test coverage detected