Commit Graph

73 Commits

Author SHA1 Message Date
Philippe Lafoucrière
e98fd88cbd Add complementary test for patterns with pipe 2015-03-10 21:48:38 -04:00
Philippe Lafoucrière
00bf0e01a1 Add tests for patterns with pipe
closes #62
2015-03-10 21:38:35 -04:00
Kamil Kisiel
8a875a034c Merge pull request #52 from sqs/BuildVarsFunc
BuildVarsFunc: modify route variables before building the URL from a route
2015-02-13 11:22:55 -08:00
Raphael Simon
69237eaae5 Fix "Queries" matcher to support out-of-order query string parameters 2014-05-27 09:34:08 -07:00
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
2014-05-26 20:20:14 -07:00
Raphael Simon
65cc9b5df8 Add ability to capture variables in query strings 2014-05-26 15:01:42 -07:00
Quinn Slack
a883d5a9b9 Call parent BuildVarsFuncs 2014-04-23 11:44:16 -07:00
Quinn Slack
cef3b0cd6d Add BuildVarsFunc to allow modifying route variables before generating a route's URL 2014-04-23 11:44:16 -07:00
Thomas ten Cate
b864f07c53 Propagate StrictSlash to subrouters instead of rudely turning it off 2014-04-23 19:53:35 +02:00
Thomas ten Cate
3509745ae8 Add tests for all four StrictSlash cases 2014-04-23 19:27:53 +02:00
Thomas ten Cate
bac1372129 Convert TestStrictSlash to a table driven test 2014-04-23 19:24:12 +02:00
Thomas ten Cate
033224c12e Document behaviour of StrictSlash and PathPrefix better, and add tests to nail this down 2014-04-23 18:19:14 +02:00
Thomas ten Cate
525eff436e Improve docs about leading and trailing slashes 2014-04-23 17:40:15 +02:00
Quinn Slack
9ee70e572c gofmt 2014-04-17 00:44:35 -07:00
Philip Schlump
ab8ae247f1 Fixed the domain name copied from my other code to be example.com 2013-11-18 11:53:02 -07:00
Philip Schlump
6689ee8243 Cleaned up testing. 2013-11-18 10:54:45 -07:00
Philip Schlump
1a2411f44a Added tests to verify that the 301 redirect returns query string 2013-11-18 10:14:28 -07:00
John Nadratowski
e718e932ee Add KeepContext flag to Router to disable clearing of context data. 2013-07-09 21:15:18 -07:00
moraes
a8ad2b0f13 Now the real test for https://plus.google.com/101022900381697718949/posts/eWy6DjFJ6uW 2012-12-27 06:28:03 -02:00
moraes
b20a198901 Test for https://plus.google.com/101022900381697718949/posts/eWy6DjFJ6uW 2012-12-27 06:12:28 -02:00
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.
2012-10-14 14:37:14 -07:00
Kamil Kisiel
bcb4f4bcdc Converted TestRoute to a table-driven test 2012-10-04 23:08:44 -07:00
moraes
eac83ba2c0 Initial files. 2012-10-03 01:48:17 -03:00