Commit Graph

29 Commits

Author SHA1 Message Date
thinkerou 7ee83ec3d5 Remove go1.12 support (#2679)
* Revert "Adding ppc64le architecture support on travis-ci (#2538)"

This reverts commit fca3f95d7c.

* not support go1.12

* fix

* Update errors_test.go

* Update debug.go
2021-11-24 21:37:56 +08:00
Qt f4bc259de3
fix error gin support min Go version (#2584)
Co-authored-by: thinkerou <thinkerou@gmail.com>
2021-01-12 08:32:04 +08:00
Vas N 5e40c1d49c
DebugPrintRouteFunc() unit test (#2395)
Co-authored-by: thinkerou <thinkerou@gmail.com>
2020-05-25 21:47:06 +08:00
thinkerou 2ee0e96394 Drop support go1.10 (#2147) 2019-11-24 23:07:56 +08:00
Dan Markham fc920dc561 Drop Support for go1.8 and go1.9 (#1933) 2019-06-28 23:43:07 +08:00
Uwe Dauernheim 04eecb1283 Use DefaultWriter and DefaultErrorWriter for debug messages (#1891)
Aligns behaviour according to documentation.
2019-05-10 14:03:25 +08:00
Dan Markham 094f9a9105 v1.4.0 + #1631 (remove go1.6/go1,7 support) (#1851)
* remove go1.6 support

* remove build tag

* remove todo

* remove go1.6 support: https://github.com/gin-gonic/gin/pull/1383/commits

* update readme

* remove go1.7 support

* fix embedmd error

* test

* revert it

* revert it

* remove context_17

* add pusher test

* v1.4.0 rc1
2019-05-07 18:32:32 +08:00
Dmitry Kutakov 31bbb10f34 Make silent debug info on tests (#1765)
* make silent log on tests

* fix coverage: check end-of-line at the end of debug msg
2019-02-18 10:10:45 +08:00
Dmitry Kutakov b056a34bdc fix errcheck warnings (#1739) 2019-01-18 09:32:53 +08:00
田欧 b7314d943c chore: fix debug test error (#1574) 2018-09-27 09:42:41 +08:00
田欧 834a2ec64c
feat: add go version judge when print debug warning log (#1572)
* feat: add go version judge when print debug warning log

* remove invalid statement

* use one const
2018-09-26 13:49:11 +08:00
Bo-Yi Wu 07f1bf0e63
feat: replace debug log with fmt package. (#1560) 2018-09-19 13:57:00 +08:00
田欧 6159213462 unify test data (#1417)
mkdir a test data dir.
2018-08-12 23:38:31 +08:00
田欧 c00f21ff23 add go version prerequisite and debug warning (#1394)
* add go version prerequisite and debug warning

* merge duplicate content

* remove duplicate content
2018-06-26 18:56:43 +08:00
田欧 0cb7c44abc Print warning log when user create one engine using gin.Default in debug mode (#1121)
* empty string check

* add log when use Default

* fix unit test error

* fix unit test error
2017-09-29 11:58:57 +08:00
Eason Lin 81007d2ce0 refactor(test): unify assert.Equal usage (#1054) 2017-08-04 13:45:59 +08:00
Eason Lin 735748b359 fix(tests): TestDebugPrintLoadTemplate use assert.Regep instead of assert.Equal (#973) 2017-07-04 03:36:12 -05:00
Javier Provecho Fernandez a8ea89ea38 fix(test): remove wildcard loadtemplate 2017-07-02 11:17:42 +02:00
Eason Lin 76a63b257d Improve debug code coverage (#963)
* Improve debug.go code coverage

* lint code
2017-07-02 02:29:29 -05:00
Manu Mtz.-Almeida 8949247b92 Merge branch 'master' into develop
# Conflicts:
#	debug_test.go
2016-01-27 03:40:52 +01:00
Olivier Mengué 90911f53f2 debug: fix indent of routes dump for DELETE method
'DELETE' is 6 chars and breaks indent of the routes dump (only 5 chars
were reserved for the HTTP method).
2015-12-10 15:15:17 +01:00
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 fd5d4294a5 debugPrintRoutes() unit test 2015-07-12 16:35:15 +02:00
Manu Mtz-Almeida e2adae9003 Solution for Google App Engine?
https://cloud.google.com/appengine/docs/go/logs/
2015-05-24 01:00:17 +02:00
Manu Mtz-Almeida b690611c38 Better debug logging + unit tests 2015-05-09 03:34:43 +02:00
Manu Mtz-Almeida eb3e9293ed Renames []HandleFunc to HandlersChain 2015-05-07 11:30:01 +02:00
Manu Mtz-Almeida 0a192fb0fa Tons of unit tests 2015-04-09 12:15:02 +02:00
Manu Mtz-Almeida 54b3decc21 More unit tests 2015-04-08 13:30:17 +02:00
Manu Mtz-Almeida ac0ad2fed8 Improves unit tests 2015-04-08 02:58:35 +02:00