See: https://github.com/gorilla/mux/issues/200
(t *testing.T)
| 1760 | |
| 1761 | // See: https://github.com/gorilla/mux/issues/200 |
| 1762 | func TestPanicOnCapturingGroups(t *testing.T) { |
| 1763 | defer func() { |
| 1764 | if recover() == nil { |
| 1765 | t.Errorf("(Test that capturing groups now fail fast) Expected panic, however test completed successfully.\n") |
| 1766 | } |
| 1767 | }() |
| 1768 | NewRouter().NewRoute().Path("/{type:(promo|special)}/{promoId}.json") |
| 1769 | } |
| 1770 | |
| 1771 | // ---------------------------------------------------------------------------- |
| 1772 | // Helpers |