gin-gonic / gin
Showing 1 of 2 files from the diff.
Other files ignored by Codecov
context_test.go has changed.

@@ -416,7 +416,11 @@
Loading
416 416
417 417
func (c *Context) initQueryCache() {
418 418
	if c.queryCache == nil {
419 -
		c.queryCache = c.Request.URL.Query()
419 +
		if c.Request != nil {
420 +
			c.queryCache = c.Request.URL.Query()
421 +
		} else {
422 +
			c.queryCache = url.Values{}
423 +
		}
420 424
	}
421 425
}
422 426
Files Coverage
binding 100.00%
render 94.48%
auth.go 100.00%
context.go 98.10%
debug.go 94.00%
deprecated.go 100.00%
errors.go 100.00%
fs.go 100.00%
gin.go 99.15%
logger.go 100.00%
mode.go 100.00%
path.go 100.00%
recovery.go 97.50%
response_writer.go 95.24%
routergroup.go 100.00%
test_helpers.go 100.00%
tree.go 100.00%
utils.go 97.37%
Project Totals (41 files) 98.73%
4544.6
1.14.x=.14.x
TRAVIS_OS_NAME=linux
4544.7
TRAVIS_OS_NAME=linux
master=
4544.3
1.13.x=.13.x
TRAVIS_OS_NAME=linux
4544.5
1.14.x=.14.x
TRAVIS_OS_NAME=linux
4544.1
1.11.x=.11.x
TRAVIS_OS_NAME=linux
4544.2
TRAVIS_OS_NAME=linux
1.12.x=.12.x
4541.3
1.13.x=.13.x
TRAVIS_OS_NAME=linux
4541.4
1.13.x=.13.x
TRAVIS_OS_NAME=linux
4541.1
1.11.x=.11.x
TRAVIS_OS_NAME=linux
4541.5
1.14.x=.14.x
TRAVIS_OS_NAME=linux
4541.7
TRAVIS_OS_NAME=linux
master=
4541.2
TRAVIS_OS_NAME=linux
1.12.x=.12.x
4542.3
1.13.x=.13.x
TRAVIS_OS_NAME=linux
4542.5
1.14.x=.14.x
TRAVIS_OS_NAME=linux
4542.1
1.11.x=.11.x
TRAVIS_OS_NAME=linux
4542.4
1.13.x=.13.x
TRAVIS_OS_NAME=linux
4542.7
TRAVIS_OS_NAME=linux
master=
4542.6
1.14.x=.14.x
TRAVIS_OS_NAME=linux
4543.3
1.13.x=.13.x
TRAVIS_OS_NAME=linux
4543.4
1.13.x=.13.x
TRAVIS_OS_NAME=linux