Kamil Kisiel
327d4b684c
Clean up some naming in mux_test.go
10 years ago
Martin Hamrle
cf57124f1d
Fix error handling in Router.Walk
...
In old version error was not returned properly, In one walkFn call
error was checked only for SkipRouter but not for nil.
10 years ago
Eric J. Holmes
fdfca9f917
Support native context.Context when go1.7 is used.
10 years ago
Jingwen Owen Ou
9935257381
Add test for `SkipClean`
10 years ago
JP Robinson
65c2651643
fixing regexp changes from PR #144
10 years ago
Dj Gilcrease
f84ab9ab62
Fix go fmt issues
10 years ago
Dj Gilcrease
0d60c4bfeb
Add tests for GetPathTemplate. Added GetHostTemplate and associated tests as well
10 years ago
Nate Woods
82a9c170d4
Covering change with unit test
...
This test focuses on the feature of allowing sub-routers error handlers to precede the parents, rather than the code change required to provide this functionality.
10 years ago
mitsuteru sawa
a90bbbc6fa
Correct a printf verb type
...
% go vet
mux_test.go:1080: arg len(ancestors) for printf verb %s of wrong type:
int
10 years ago
Kamil Kisiel
5112c33f3a
slightly improve printing of regexps in failed tests.
10 years ago
Shinya Kawaguchi
577b9e4a65
Add tests for hyphenated variable names
11 years ago
Kamil Kisiel
c3c5f0000f
Add test which used to fail for queries.
...
Fixes #66
11 years ago
Kamil Kisiel
e73f183699
fix use of capturing subexpressions in pattern matches.
...
The router now associates a regexp named group with each mux variable.
It only fills variables when capturing group name match instead of
relying on indices, which doesn't work if a variable regexp has interior
capturing groups.
Fixes #62
11 years ago
Bay Dodd
3339267a85
adding tests
11 years ago
Bay Dodd
fe40f0d056
updating query match string
11 years ago
Bay Dodd
19f0a91c4e
adding test and updating condition
11 years ago
Bay Dodd
2b32409792
fix for empty query
11 years ago
Dj Gilcrease
92ae1d6726
Update the walk method to walk matchers so it walks the full list of routers and child routers
11 years ago
Kamil Kisiel
9cb89f07ca
Add a couple of additional tests for query strings.
11 years ago
Bay Dodd
a710a8bfa9
adding ^ and $ to query pattern
11 years ago
Craig Jellick
c0a5cbce5a
Fix typo
...
Issue #16 : Added regex support for matching headers
Issue #16 : Addressed code review and refactored support for regex into
a separate function
Added compiled regex to route matcher
11 years ago
Craig Jellick
a063f14812
Fix typo
...
Issue #16 : Added regex support for matching headers
Issue #16 : Addressed code review and refactored support for regex into
a separate function
Added compiled regex to route matcher
11 years ago
Philippe Lafoucrière
e98fd88cbd
Add complementary test for patterns with pipe
11 years ago
Philippe Lafoucrière
00bf0e01a1
Add tests for patterns with pipe
...
closes #62
11 years ago
Raphael Simon
69237eaae5
Fix "Queries" matcher to support out-of-order query string parameters
12 years ago
Raphael Simon
0a0d6a1b2a
Add tests for regexp variables in query strings
...
Fix how regular expression gets built for query string so that order of parameters is always preserved
12 years ago
Raphael Simon
65cc9b5df8
Add ability to capture variables in query strings
12 years ago
Quinn Slack
a883d5a9b9
Call parent BuildVarsFuncs
12 years ago
Quinn Slack
cef3b0cd6d
Add BuildVarsFunc to allow modifying route variables before generating a route's URL
12 years ago
Thomas ten Cate
b864f07c53
Propagate StrictSlash to subrouters instead of rudely turning it off
12 years ago
Thomas ten Cate
3509745ae8
Add tests for all four StrictSlash cases
12 years ago
Thomas ten Cate
bac1372129
Convert TestStrictSlash to a table driven test
12 years ago
Thomas ten Cate
033224c12e
Document behaviour of StrictSlash and PathPrefix better, and add tests to nail this down
12 years ago
Thomas ten Cate
525eff436e
Improve docs about leading and trailing slashes
12 years ago
Quinn Slack
9ee70e572c
gofmt
12 years ago
Philip Schlump
ab8ae247f1
Fixed the domain name copied from my other code to be example.com
12 years ago
Philip Schlump
6689ee8243
Cleaned up testing.
12 years ago
Philip Schlump
1a2411f44a
Added tests to verify that the 301 redirect returns query string
12 years ago
John Nadratowski
e718e932ee
Add KeepContext flag to Router to disable clearing of context data.
13 years ago
moraes
a8ad2b0f13
Now the real test for https://plus.google.com/101022900381697718949/posts/eWy6DjFJ6uW
13 years ago
moraes
b20a198901
Test for https://plus.google.com/101022900381697718949/posts/eWy6DjFJ6uW
13 years ago
Kamil Kisiel
f89494aed1
Finished converting rest of mux tests to table tests
...
Separated the tests in to test functions depending on what they are
testing.
Moved some test-specific functiosn in to closures within the test
functions themselves.
13 years ago
Kamil Kisiel
bcb4f4bcdc
Converted TestRoute to a table-driven test
13 years ago
moraes
eac83ba2c0
Initial files.
13 years ago