Commit Graph

30 Commits

Author SHA1 Message Date
Philipp Meinen
9fd8aff56e tests: make path assertions aware of vendoring
The path of a package can change in a situation where
dependency vendoring is in use.
This change modifies gin's unit tests to allow such paths.
2015-08-23 00:13:41 +02:00
Manu Mtz-Almeida
a97c239b7a fixes unit tests 2015-08-16 16:36:47 +02:00
Manu Mtz-Almeida
fc5e355724 BasePath is not longer an exported field, but a method instead 2015-07-08 04:27:23 +02:00
Manu Mtz-Almeida
638377655d Add unit tests for LoadHTML in debug mode 2015-07-04 20:06:40 +02:00
Manu Mtz-Almeida
1a7ab6e4d5 Fixes gin.Routes() tests 2015-06-18 17:17:22 +02:00
Manu Mtz-Almeida
c7d2d82d01 gofmt 2015-06-07 04:26:30 +02:00
Manu Mtz-Almeida
45dd777693 List of routes 2015-06-07 04:20:39 +02:00
Manu Mtz-Almeida
ee021d06ea More unit tests 2015-06-04 04:32:18 +02:00
Manu Mtz-Almeida
766493c916 Fixes all unit tests 2015-05-31 22:35:49 +02:00
Manu Mtz-Almeida
835f66fdc9 404 not found performance improvements
benchmark            old ns/op     new ns/op     delta
Benchmark404         737           249           -66.21%
Benchmark404Many     2330          454           -80.52%

benchmark            old allocs     new allocs     delta
Benchmark404         3              0              -100.00%
Benchmark404Many     10             0              -100.00%

benchmark            old bytes     new bytes     delta
Benchmark404         115           68            -40.87%
Benchmark404Many     235           57            -75.74%
2015-05-30 14:45:13 +02:00
Manu Mtz-Almeida
022304e7d9 Better API for RouteGroup.Handle() 2015-05-19 23:22:35 +02:00
Manu Mtz-Almeida
0cb52ccef7 Improves unit test coverage 2015-05-19 02:29:32 +02:00
Manu Mtz-Almeida
3066c35754 Renames RouterGroup.absolutePath to .BasePath 2015-05-16 18:08:19 +02:00
Manu Mtz-Almeida
eb3e9293ed Renames []HandleFunc to HandlersChain 2015-05-07 11:30:01 +02:00
Manu Mtz-Almeida
f212ae7728 Updates tree.go + fixes + unit tests 2015-05-05 16:37:33 +02:00
Manu Mtz-Almeida
0a192fb0fa Tons of unit tests 2015-04-09 12:15:02 +02:00
Manu Mtz-Almeida
ac0ad2fed8 Improves unit tests 2015-04-08 02:58:35 +02:00
Manu Mtz-Almeida
615c62d736 Some cosmetic changes 2015-03-23 04:41:29 +01:00
Javier Provecho Fernandez
413d0f2296 Fix TestRouteNotOK2 with HTTP 405 2015-01-04 02:28:37 +01:00
Manu Mtz-Almeida
030706c39a Using absolutePath in static properly 2014-10-08 21:49:08 +02:00
Manu Mtz-Almeida
8e5397bfa0 Adds in-code license 2014-08-29 19:49:50 +02:00
Manu Mtz-Almeida
94f2f3f7eb Using test mode 2014-08-21 01:01:42 +02:00
Manu Mtz-Almeida
d85245b5aa Improves unit tests
- Reusing much more code
- More coverage
- Cleanup
- Fixes some cases
2014-08-18 19:48:48 +02:00
Sasha Myasoedov
6abe841c1f Splited tests into separate files 2014-08-08 14:48:15 +03:00
Sasha Myasoedov
74ca5f3bd9 Added dummy tests for middleware 2014-07-28 13:05:23 +03:00
Sasha Myasoedov
89b4c6e0d1 Replaced deprecated ServeFiles 2014-07-24 16:52:16 +03:00
Sasha Myasoedov
8933874582 Fixed tests up to master branch 2014-07-24 16:28:13 +03:00
msoedov
f944cff1a8 Added tests for ServeFiles #37 2014-07-05 18:06:24 +03:00
Alexander Nyquist
70593e8dfe Added test for requests to / when no route for / is defined 2014-07-04 11:01:11 +02:00
Alexander Nyquist
a0ae5c296d Started writing unit tests 2014-07-04 10:12:28 +02:00