Lint with golangci-lint; Fix linter issues; Add Go 1.12 to CircleCI

This commit is contained in:
DarthSim
2019-04-11 20:07:09 +06:00
parent 2e6296c4d9
commit d5b7e2aa13
9 changed files with 101 additions and 15 deletions

View File

@@ -16,12 +16,14 @@ import (
type ProcessingOptionsTestSuite struct{ MainTestSuite }
func (s *ProcessingOptionsTestSuite) getRequest(url string) *fasthttp.RequestCtx {
req := fasthttp.Request{}
req.SetRequestURI(url)
return &fasthttp.RequestCtx{
Request: req,
ctx := fasthttp.RequestCtx{
Request: fasthttp.Request{},
Response: fasthttp.Response{},
}
ctx.Request.SetRequestURI(url)
return &ctx
}
func (s *ProcessingOptionsTestSuite) TestParseBase64URL() {