swaggest / jsonschema-go

JSON Schema mapping for Go
https://pkg.go.dev/github.com/swaggest/jsonschema-go
MIT License
123 stars 14 forks source link

Update CI #38

Closed vearutop closed 2 years ago

github-actions[bot] commented 2 years ago

Lines Of Code

Language Files Lines Code Comments Blanks Complexity Bytes
Go 6 1566 (-2) 1101 135 (-2) 330 435 36.4K (-23B)
Go (test) 11 1839 1347 215 277 43 47K (-62B)
YAML 6 438 (+6) 374 (+6) 36 28 0 14.3K (+192B)
github-actions[bot] commented 2 years ago

Go API Changes

# github.com/swaggest/jsonschema-go
## incompatible changes
ProcessWithoutTags: changed from func(bool) func(rc *ReflectContext) to func(*ReflectContext)

# summary
Inferred base version: v0.3.28
Suggested version: v0.4.0
github-actions[bot] commented 2 years ago

Unit Test Coverage

total: (statements) 75.8%

Coverage diff with base branch ```diff ```
github-actions[bot] commented 2 years ago

Benchmark Result

Benchmark diff with base branch ``` name old time/op new time/op delta Schema_UnmarshalJSON_raw-2 94.4µs ± 1% 93.8µs ± 2% ~ (p=0.548 n=5+5) Schema_UnmarshalJSON-2 752µs ± 2% 758µs ± 3% ~ (p=0.548 n=5+5) Schema_MarshalJSON_raw-2 93.4µs ± 1% 93.2µs ± 1% ~ (p=0.690 n=5+5) Schema_MarshalJSON-2 283µs ± 2% 283µs ± 2% ~ (p=0.548 n=5+5) name old alloc/op new alloc/op delta Schema_UnmarshalJSON_raw-2 31.7kB ± 0% 31.7kB ± 0% ~ (p=0.079 n=5+5) Schema_UnmarshalJSON-2 184kB ± 0% 184kB ± 0% ~ (p=1.000 n=5+5) Schema_MarshalJSON_raw-2 30.9kB ± 0% 30.9kB ± 0% ~ (p=0.714 n=5+5) Schema_MarshalJSON-2 56.0kB ± 0% 56.0kB ± 0% ~ (p=0.810 n=5+5) name old allocs/op new allocs/op delta Schema_UnmarshalJSON_raw-2 457 ± 0% 457 ± 0% ~ (all equal) Schema_UnmarshalJSON-2 2.00k ± 0% 2.00k ± 0% ~ (all equal) Schema_MarshalJSON_raw-2 554 ± 0% 554 ± 0% ~ (all equal) Schema_MarshalJSON-2 482 ± 0% 482 ± 0% ~ (all equal) ```
Benchmark result ``` name time/op Schema_UnmarshalJSON_raw-2 93.8µs ± 2% Schema_UnmarshalJSON-2 758µs ± 3% Schema_MarshalJSON_raw-2 93.2µs ± 1% Schema_MarshalJSON-2 283µs ± 2% name alloc/op Schema_UnmarshalJSON_raw-2 31.7kB ± 0% Schema_UnmarshalJSON-2 184kB ± 0% Schema_MarshalJSON_raw-2 30.9kB ± 0% Schema_MarshalJSON-2 56.0kB ± 0% name allocs/op Schema_UnmarshalJSON_raw-2 457 ± 0% Schema_UnmarshalJSON-2 2.00k ± 0% Schema_MarshalJSON_raw-2 554 ± 0% Schema_MarshalJSON-2 482 ± 0% ```
codecov[bot] commented 2 years ago

Codecov Report

Merging #38 (3674bf5) into master (19ca138) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #38   +/-   ##
=======================================
  Coverage   69.48%   69.48%           
=======================================
  Files           6        6           
  Lines         957      957           
=======================================
  Hits          665      665           
  Misses        221      221           
  Partials       71       71           
Flag Coverage Δ
unittests 69.48% <ø> (ø)

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

Impacted Files Coverage Δ
helper.go 82.41% <ø> (ø)
reflect.go 77.20% <ø> (ø)

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more