swaggest / rest

Web services with OpenAPI and JSON Schema done quick in Go
https://pkg.go.dev/github.com/swaggest/rest
MIT License
362 stars 17 forks source link

Update CI and deps #88

Closed vearutop closed 1 year ago

github-actions[bot] commented 1 year ago

Lines Of Code

Language Files Lines Code Comments Blanks Complexity Bytes
Go 100 6896 (+5) 5003 463 (+5) 1430 836 166.6K (-13B)
Go (test) 44 4750 3658 146 946 169 132.1K (+1B)
JSON 3 1319 1319 0 0 0 54.1K (+30B)
YAML 10 722 (+15) 626 (+14) 46 50 (+1) 0 22.6K (+452B)
github-actions[bot] commented 1 year ago

Go API Changes

# summary
Inferred base version: v0.2.30
Suggested version: v0.3.0
github-actions[bot] commented 1 year ago

Benchmark Result

Benchmark diff with base branch ``` name old time/op new time/op delta pkg:github.com/swaggest/rest/jsonschema goos:linux goarch:amd64 RequestValidator_ValidateRequestData-2 1.76µs ±14% 1.77µs ±14% ~ (p=0.690 n=5+5) pkg:github.com/swaggest/rest/request goos:linux goarch:amd64 Decoder_Decode-2 869ns ± 2% 854ns ± 2% ~ (p=0.310 n=5+5) DecoderFunc_Decode-2 2.51µs ± 6% 2.42µs ± 2% ~ (p=0.310 n=5+5) Decoder_Decode_json-2 28.0µs ± 6% 27.2µs ± 3% ~ (p=0.222 n=5+5) Decoder_Decode_queryObject-2 5.73µs ± 2% 5.66µs ± 1% ~ (p=0.421 n=5+5) Decoder_Decode_jsonParam-2 2.16µs ± 1% 2.20µs ± 2% ~ (p=0.095 n=5+5) DecoderFactory_SetDecoderFunc-2 2.01µs ± 1% 2.01µs ± 2% ~ (p=0.690 n=5+5) pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64 Middleware-2 13.1µs ± 4% 13.6µs ± 3% ~ (p=0.056 n=5+5) Middleware_control-2 4.38µs ± 4% 4.48µs ± 2% ~ (p=0.421 n=5+5) name old alloc/op new alloc/op delta pkg:github.com/swaggest/rest/jsonschema goos:linux goarch:amd64 RequestValidator_ValidateRequestData-2 2.46kB ± 0% 2.46kB ± 0% ~ (all equal) pkg:github.com/swaggest/rest/request goos:linux goarch:amd64 Decoder_Decode-2 440B ± 0% 440B ± 0% ~ (all equal) DecoderFunc_Decode-2 1.51kB ± 0% 1.51kB ± 0% ~ (all equal) Decoder_Decode_json-2 12.2kB ± 0% 12.2kB ± 0% ~ (all equal) Decoder_Decode_queryObject-2 2.00kB ± 0% 2.00kB ± 0% ~ (all equal) Decoder_Decode_jsonParam-2 736B ± 0% 736B ± 0% ~ (all equal) DecoderFactory_SetDecoderFunc-2 1.02kB ± 0% 1.02kB ± 0% ~ (all equal) pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64 Middleware-2 1.16kB ± 2% 1.19kB ± 4% ~ (p=0.135 n=5+5) Middleware_control-2 11.2kB ± 0% 11.2kB ± 0% ~ (all equal) name old allocs/op new allocs/op delta pkg:github.com/swaggest/rest/jsonschema goos:linux goarch:amd64 RequestValidator_ValidateRequestData-2 8.00 ± 0% 8.00 ± 0% ~ (all equal) pkg:github.com/swaggest/rest/request goos:linux goarch:amd64 Decoder_Decode-2 4.00 ± 0% 4.00 ± 0% ~ (all equal) DecoderFunc_Decode-2 12.0 ± 0% 12.0 ± 0% ~ (all equal) Decoder_Decode_json-2 177 ± 0% 177 ± 0% ~ (all equal) Decoder_Decode_queryObject-2 36.0 ± 0% 36.0 ± 0% ~ (all equal) Decoder_Decode_jsonParam-2 13.0 ± 0% 13.0 ± 0% ~ (all equal) DecoderFactory_SetDecoderFunc-2 16.0 ± 0% 16.0 ± 0% ~ (all equal) pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64 Middleware-2 11.0 ± 0% 11.0 ± 0% ~ (all equal) Middleware_control-2 9.00 ± 0% 9.00 ± 0% ~ (all equal) ```
Benchmark result ``` name time/op pkg:github.com/swaggest/rest/jsonschema goos:linux goarch:amd64 RequestValidator_ValidateRequestData-2 1.77µs ±14% pkg:github.com/swaggest/rest/request goos:linux goarch:amd64 Decoder_Decode-2 854ns ± 2% DecoderFunc_Decode-2 2.42µs ± 2% Decoder_Decode_json-2 27.2µs ± 3% Decoder_Decode_queryObject-2 5.66µs ± 1% Decoder_Decode_jsonParam-2 2.20µs ± 2% DecoderFactory_SetDecoderFunc-2 2.01µs ± 2% pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64 Middleware-2 13.6µs ± 3% Middleware_control-2 4.48µs ± 2% name alloc/op pkg:github.com/swaggest/rest/jsonschema goos:linux goarch:amd64 RequestValidator_ValidateRequestData-2 2.46kB ± 0% pkg:github.com/swaggest/rest/request goos:linux goarch:amd64 Decoder_Decode-2 440B ± 0% DecoderFunc_Decode-2 1.51kB ± 0% Decoder_Decode_json-2 12.2kB ± 0% Decoder_Decode_queryObject-2 2.00kB ± 0% Decoder_Decode_jsonParam-2 736B ± 0% DecoderFactory_SetDecoderFunc-2 1.02kB ± 0% pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64 Middleware-2 1.19kB ± 4% Middleware_control-2 11.2kB ± 0% name allocs/op pkg:github.com/swaggest/rest/jsonschema goos:linux goarch:amd64 RequestValidator_ValidateRequestData-2 8.00 ± 0% pkg:github.com/swaggest/rest/request goos:linux goarch:amd64 Decoder_Decode-2 4.00 ± 0% DecoderFunc_Decode-2 12.0 ± 0% Decoder_Decode_json-2 177 ± 0% Decoder_Decode_queryObject-2 36.0 ± 0% Decoder_Decode_jsonParam-2 13.0 ± 0% DecoderFactory_SetDecoderFunc-2 16.0 ± 0% pkg:github.com/swaggest/rest/response/gzip goos:linux goarch:amd64 Middleware-2 11.0 ± 0% Middleware_control-2 9.00 ± 0% ```
github-actions[bot] commented 1 year ago

Examples Benchmark Result

Benchmark diff with base branch ``` name old time/op new time/op delta pkg:github.com/swaggest/rest/_examples/advanced goos:linux goarch:amd64 _directGzip-2 23.7µs ± 0% 23.3µs ± 0% -1.28% (p=0.029 n=4+4) _directGzipHead-2 24.0µs ± 4% 23.4µs ± 1% -2.77% (p=0.032 n=5+5) _noDirectGzip-2 137µs ± 2% 134µs ± 1% -2.55% (p=0.032 n=5+5) _directGzip_decode-2 456µs ± 1% 451µs ± 1% ~ (p=0.095 n=5+5) _noDirectGzip_decode-2 134µs ± 0% 134µs ± 2% ~ (p=1.000 n=5+5) _jsonBody-2 43.8µs ± 1% 43.1µs ± 2% ~ (p=0.056 n=5+5) _jsonBodyValidation-2 50.3µs ± 2% 49.2µs ± 2% -2.16% (p=0.008 n=5+5) _outputHeaders-2 23.2µs ± 1% 22.9µs ± 0% -1.12% (p=0.016 n=5+5) _requestResponseMapping-2 43.2µs ± 1% 42.8µs ± 1% ~ (p=0.151 n=5+5) _validation-2 46.4µs ± 2% 46.0µs ± 1% ~ (p=0.548 n=5+5) _noValidation-2 34.4µs ± 1% 33.8µs ± 1% ~ (p=0.056 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 23.9µs ± 1% 24.4µs ± 2% +2.22% (p=0.016 n=4+5) _directGzipHead-2 23.9µs ± 1% 23.9µs ± 3% ~ (p=0.548 n=5+5) _noDirectGzip-2 134µs ± 1% 135µs ± 1% ~ (p=1.000 n=5+5) _directGzip_decode-2 452µs ± 1% 459µs ± 5% ~ (p=0.310 n=5+5) _noDirectGzip_decode-2 133µs ± 1% 135µs ± 1% +0.98% (p=0.016 n=5+5) _jsonBodyManual-2 27.5µs ± 2% 27.3µs ± 0% ~ (p=0.690 n=5+5) _jsonBody-2 39.3µs ± 4% 39.2µs ± 2% ~ (p=1.000 n=5+5) _jsonBodyValidation-2 50.5µs ± 2% 50.5µs ± 2% ~ (p=1.000 n=5+5) _outputHeaders-2 23.2µs ± 1% 23.5µs ± 2% ~ (p=0.056 n=5+5) _requestResponseMapping-2 43.0µs ± 1% 43.3µs ± 1% ~ (p=0.222 n=5+5) _validation-2 47.6µs ± 4% 46.4µs ± 1% ~ (p=0.151 n=5+5) _noValidation-2 35.1µs ± 4% 33.9µs ± 1% -3.32% (p=0.016 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 27.3µs ± 7% 27.0µs ±13% ~ (p=0.222 n=5+5) _ok-2 27.4µs ± 2% 26.7µs ± 1% -2.27% (p=0.016 n=5+5) _invalidBody-2 38.4µs ± 1% 37.7µs ± 1% -1.67% (p=0.016 n=4+5) name old B:rcvd/op new B:rcvd/op delta pkg:github.com/swaggest/rest/_examples/advanced goos:linux goarch:amd64 _directGzip-2 639 ± 0% 639 ± 0% ~ (all equal) _directGzipHead-2 183 ± 0% 183 ± 0% ~ (all equal) _noDirectGzip-2 1.04k ± 0% 1.04k ± 0% ~ (all equal) _directGzip_decode-2 639 ± 0% 639 ± 0% ~ (all equal) _noDirectGzip_decode-2 1.04k ± 0% 1.04k ± 0% ~ (all equal) _jsonBody-2 208 ± 0% 208 ± 0% ~ (all equal) _jsonBodyValidation-2 194 ± 0% 194 ± 0% ~ (all equal) _outputHeaders-2 155 ± 0% 155 ± 0% ~ (all equal) _requestResponseMapping-2 94.0 ± 0% 94.0 ± 0% ~ (all equal) _validation-2 177 ± 0% 177 ± 0% ~ (all equal) _noValidation-2 177 ± 0% 177 ± 0% ~ (all equal) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 653 ± 0% 653 ± 0% ~ (all equal) _directGzipHead-2 197 ± 0% 197 ± 0% ~ (all equal) _noDirectGzip-2 1.06k ± 0% 1.06k ± 0% ~ (all equal) _directGzip_decode-2 653 ± 0% 653 ± 0% ~ (all equal) _noDirectGzip_decode-2 1.06k ± 0% 1.06k ± 0% ~ (all equal) _jsonBodyManual-2 222 ± 0% 222 ± 0% ~ (all equal) _jsonBody-2 222 ± 0% 222 ± 0% ~ (all equal) _jsonBodyValidation-2 208 ± 0% 208 ± 0% ~ (all equal) _outputHeaders-2 169 ± 0% 169 ± 0% ~ (all equal) _requestResponseMapping-2 108 ± 0% 108 ± 0% ~ (all equal) _validation-2 191 ± 0% 191 ± 0% ~ (all equal) _noValidation-2 191 ± 0% 191 ± 0% ~ (all equal) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 337 ± 0% 337 ± 0% ~ (all equal) _ok-2 359 ± 0% 359 ± 0% ~ (all equal) _invalidBody-2 435 ± 0% 435 ± 0% ~ (all equal) name old B:sent/op new B:sent/op delta pkg:github.com/swaggest/rest/_examples/advanced goos:linux goarch:amd64 _directGzip-2 103 ± 0% 103 ± 0% ~ (all equal) _directGzipHead-2 104 ± 0% 104 ± 0% ~ (all equal) _noDirectGzip-2 117 ± 0% 117 ± 0% ~ (all equal) _directGzip_decode-2 116 ± 0% 116 ± 0% ~ (all equal) _noDirectGzip_decode-2 130 ± 0% 130 ± 0% ~ (all equal) _jsonBody-2 188 ± 0% 188 ± 0% ~ (all equal) _jsonBodyValidation-2 192 ± 0% 192 ± 0% ~ (all equal) _outputHeaders-2 77.0 ± 0% 77.0 ± 0% ~ (all equal) _requestResponseMapping-2 169 ± 0% 169 ± 0% ~ (all equal) _validation-2 170 ± 0% 170 ± 0% ~ (all equal) _noValidation-2 173 ± 0% 173 ± 0% ~ (all equal) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 103 ± 0% 103 ± 0% ~ (all equal) _directGzipHead-2 104 ± 0% 104 ± 0% ~ (all equal) _noDirectGzip-2 117 ± 0% 117 ± 0% ~ (all equal) _directGzip_decode-2 116 ± 0% 116 ± 0% ~ (all equal) _noDirectGzip_decode-2 130 ± 0% 130 ± 0% ~ (all equal) _jsonBodyManual-2 195 ± 0% 195 ± 0% ~ (all equal) _jsonBody-2 188 ± 0% 188 ± 0% ~ (all equal) _jsonBodyValidation-2 192 ± 0% 192 ± 0% ~ (all equal) _outputHeaders-2 77.0 ± 0% 77.0 ± 0% ~ (all equal) _requestResponseMapping-2 169 ± 0% 169 ± 0% ~ (all equal) _validation-2 170 ± 0% 170 ± 0% ~ (all equal) _noValidation-2 173 ± 0% 173 ± 0% ~ (all equal) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 74.0 ± 0% 74.0 ± 0% ~ (all equal) _ok-2 74.0 ± 0% 74.0 ± 0% ~ (all equal) _invalidBody-2 137 ± 0% 137 ± 0% ~ (all equal) name old rps new rps delta pkg:github.com/swaggest/rest/_examples/advanced goos:linux goarch:amd64 _directGzip-2 42.3k ± 0% 42.8k ± 0% +1.30% (p=0.029 n=4+4) _directGzipHead-2 41.6k ± 4% 42.8k ± 1% +2.80% (p=0.032 n=5+5) _noDirectGzip-2 7.28k ± 2% 7.47k ± 1% ~ (p=0.056 n=5+5) _directGzip_decode-2 2.19k ± 1% 2.22k ± 1% ~ (p=0.095 n=5+5) _noDirectGzip_decode-2 7.48k ± 0% 7.46k ± 2% ~ (p=1.000 n=5+5) _jsonBody-2 22.8k ± 1% 23.2k ± 2% ~ (p=0.056 n=5+5) _jsonBodyValidation-2 19.9k ± 1% 20.3k ± 2% +2.21% (p=0.008 n=5+5) _outputHeaders-2 43.1k ± 1% 43.6k ± 0% +1.13% (p=0.016 n=5+5) _requestResponseMapping-2 23.1k ± 1% 23.3k ± 1% ~ (p=0.151 n=5+5) _validation-2 21.6k ± 2% 21.7k ± 1% ~ (p=0.548 n=5+5) _noValidation-2 29.1k ± 1% 29.6k ± 1% ~ (p=0.056 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 41.9k ± 1% 41.0k ± 2% -2.17% (p=0.016 n=4+5) _directGzipHead-2 41.8k ± 1% 41.8k ± 3% ~ (p=0.548 n=5+5) _noDirectGzip-2 7.44k ± 1% 7.42k ± 1% ~ (p=1.000 n=5+5) _directGzip_decode-2 2.21k ± 1% 2.18k ± 4% ~ (p=0.341 n=5+5) _noDirectGzip_decode-2 7.51k ± 1% 7.43k ± 1% -0.98% (p=0.016 n=5+5) _jsonBodyManual-2 36.4k ± 2% 36.6k ± 0% ~ (p=0.690 n=5+5) _jsonBody-2 25.5k ± 4% 25.5k ± 2% ~ (p=1.000 n=5+5) _jsonBodyValidation-2 19.8k ± 2% 19.8k ± 2% ~ (p=1.000 n=5+5) _outputHeaders-2 43.0k ± 1% 42.5k ± 2% ~ (p=0.056 n=5+5) _requestResponseMapping-2 23.2k ± 1% 23.1k ± 1% ~ (p=0.222 n=5+5) _validation-2 21.0k ± 4% 21.6k ± 1% ~ (p=0.151 n=5+5) _noValidation-2 28.5k ± 3% 29.5k ± 1% +3.38% (p=0.016 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 36.6k ± 7% 37.2k ±12% ~ (p=0.222 n=5+5) _ok-2 36.5k ± 2% 37.4k ± 1% +2.32% (p=0.016 n=5+5) _invalidBody-2 26.1k ± 1% 26.5k ± 1% +1.70% (p=0.016 n=4+5) name old alloc/op new alloc/op delta pkg:github.com/swaggest/rest/_examples/advanced goos:linux goarch:amd64 _directGzip-2 3.92kB ± 0% 3.92kB ± 0% ~ (p=0.341 n=5+5) _directGzipHead-2 3.92kB ± 0% 3.92kB ± 0% ~ (p=0.762 n=5+5) _noDirectGzip-2 6.76kB ±17% 6.66kB ±14% ~ (p=0.841 n=5+5) _directGzip_decode-2 402kB ± 0% 403kB ± 0% ~ (p=0.841 n=5+5) _noDirectGzip_decode-2 5.63kB ± 9% 5.66kB ± 4% ~ (p=1.000 n=5+5) _jsonBody-2 13.2kB ± 0% 13.2kB ± 0% ~ (p=0.135 n=5+5) _jsonBodyValidation-2 19.0kB ± 0% 19.0kB ± 0% ~ (p=0.968 n=5+5) _outputHeaders-2 3.71kB ± 0% 3.71kB ± 0% ~ (p=0.714 n=5+5) _requestResponseMapping-2 16.7kB ± 0% 16.7kB ± 0% ~ (p=1.000 n=5+5) _validation-2 16.6kB ± 0% 16.6kB ± 0% ~ (p=0.357 n=5+5) _noValidation-2 7.88kB ± 0% 7.88kB ± 0% ~ (p=0.397 n=5+5) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 3.97kB ± 0% 3.97kB ± 0% ~ (p=0.429 n=5+5) _directGzipHead-2 3.97kB ± 0% 3.97kB ± 0% -0.04% (p=0.000 n=4+5) _noDirectGzip-2 7.01kB ±18% 6.78kB ±19% ~ (p=0.421 n=5+5) _directGzip_decode-2 403kB ± 0% 403kB ± 0% ~ (p=1.000 n=5+5) _noDirectGzip_decode-2 5.93kB ± 9% 5.87kB ±10% ~ (p=1.000 n=5+5) _jsonBodyManual-2 4.64kB ± 0% 4.64kB ± 0% ~ (p=0.595 n=5+5) _jsonBody-2 10.4kB ± 0% 10.4kB ± 0% ~ (p=0.690 n=5+5) _jsonBodyValidation-2 19.1kB ± 0% 19.1kB ± 0% ~ (p=0.595 n=5+5) _outputHeaders-2 3.74kB ± 0% 3.74kB ± 0% ~ (p=1.000 n=4+5) _requestResponseMapping-2 16.7kB ± 0% 16.7kB ± 0% ~ (p=0.659 n=5+5) _validation-2 16.7kB ± 0% 16.7kB ± 0% ~ (p=0.667 n=4+5) _noValidation-2 7.94kB ± 0% 7.94kB ± 0% ~ (p=0.444 n=5+5) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 4.88kB ± 0% 4.88kB ± 0% ~ (p=0.873 n=5+5) _ok-2 4.78kB ± 0% 4.78kB ± 0% ~ (p=0.743 n=4+4) _invalidBody-2 8.62kB ± 0% 8.62kB ± 0% ~ (p=0.457 n=4+4) name old allocs/op new allocs/op delta pkg:github.com/swaggest/rest/_examples/advanced goos:linux goarch:amd64 _directGzip-2 42.0 ± 0% 42.0 ± 0% ~ (all equal) _directGzipHead-2 42.0 ± 0% 42.0 ± 0% ~ (all equal) _noDirectGzip-2 49.6 ± 3% 49.6 ± 3% ~ (p=1.000 n=5+5) _directGzip_decode-2 501 ± 0% 501 ± 0% ~ (p=1.000 n=5+5) _noDirectGzip_decode-2 50.0 ± 0% 50.0 ± 0% ~ (all equal) _jsonBody-2 130 ± 0% 130 ± 0% ~ (all equal) _jsonBodyValidation-2 186 ± 0% 186 ± 0% ~ (all equal) _outputHeaders-2 37.0 ± 0% 37.0 ± 0% ~ (all equal) _requestResponseMapping-2 126 ± 0% 126 ± 0% ~ (all equal) _validation-2 155 ± 0% 155 ± 0% ~ (all equal) _noValidation-2 92.0 ± 0% 92.0 ± 0% ~ (all equal) pkg:github.com/swaggest/rest/_examples/advanced-generic goos:linux goarch:amd64 _directGzip-2 44.0 ± 0% 44.0 ± 0% ~ (all equal) _directGzipHead-2 44.0 ± 0% 44.0 ± 0% ~ (all equal) _noDirectGzip-2 51.8 ± 3% 51.6 ± 3% ~ (p=1.000 n=5+5) _directGzip_decode-2 503 ± 0% 503 ± 0% ~ (p=0.643 n=5+5) _noDirectGzip_decode-2 52.0 ± 0% 52.0 ± 0% ~ (all equal) _jsonBodyManual-2 51.0 ± 0% 51.0 ± 0% ~ (all equal) _jsonBody-2 102 ± 0% 102 ± 0% ~ (all equal) _jsonBodyValidation-2 188 ± 0% 188 ± 0% ~ (all equal) _outputHeaders-2 38.0 ± 0% 38.0 ± 0% ~ (all equal) _requestResponseMapping-2 128 ± 0% 128 ± 0% ~ (all equal) _validation-2 157 ± 0% 157 ± 0% ~ (all equal) _noValidation-2 94.0 ± 0% 94.0 ± 0% ~ (all equal) pkg:github.com/swaggest/rest/_examples/task-api/internal/infra/nethttp goos:linux goarch:amd64 _notFoundSrv-2 54.0 ± 0% 54.0 ± 0% ~ (all equal) _ok-2 50.0 ± 0% 50.0 ± 0% ~ (all equal) _invalidBody-2 99.0 ± 0% 99.0 ± 0% ~ (all equal) ```
github-actions[bot] commented 1 year ago

Unit Test Coverage

total: (statements) 83.5% changed lines: (statements) 100.0%

Coverage of changed lines | File | Function | Coverage | |------------------------------|----------------------|----------| | Total | | 100.0% | | chirouter/path_decoder.go | | 100.0% | | chirouter/path_decoder.go:11 | PathToURLValues | 100.0% | | gzip/container.go | | 100.0% | | gzip/container.go:28 | WriteCompressedBytes | 100.0% | | jsonschema/validator.go | | 100.0% | | jsonschema/validator.go:161 | ValidateJSONBody | 100.0% | | jsonschema/validator.go:192 | ValidateData | 100.0% | | request/decoder.go | | 100.0% | | request/decoder.go:76 | Decode | 100.0% | | request/jsonbody.go | | 100.0% | | request/jsonbody.go:26 | decodeJSONBody | 100.0% | | response/encoder.go | | 100.0% | | response/encoder.go:128 | writeJSONResponse | 100.0% | | response/encoder.go:190 | WriteErrResponse | 100.0% |
Coverage diff with base branch No changes in coverage.
codecov[bot] commented 1 year ago

Codecov Report

Merging #88 (f87816f) into master (0f5ebfc) will not change coverage. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master      #88   +/-   ##
=======================================
  Coverage   77.52%   77.52%           
=======================================
  Files          27       27           
  Lines        1428     1428           
=======================================
  Hits         1107     1107           
  Misses        206      206           
  Partials      115      115           
Flag Coverage Δ
unittests 77.52% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
error.go 95.38% <ø> (ø)
jsonschema/validator.go 79.79% <ø> (ø)
request.go 100.00% <ø> (ø)
request/decoder.go 70.21% <ø> (ø)
response/gzip/middleware.go 78.16% <ø> (ø)
web/service.go 100.00% <ø> (ø)
chirouter/path_decoder.go 85.71% <100.00%> (ø)
gzip/container.go 67.34% <100.00%> (ø)
request/jsonbody.go 100.00% <100.00%> (ø)
response/encoder.go 64.88% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more