swaggest / jsonschema-go

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

Update CI #106

Closed vearutop closed 4 months ago

github-actions[bot] commented 4 months ago

Lines Of Code

Language Files Lines Code Comments Blanks Complexity Bytes
Go (test) 13 3363 (+1) 2475 (+1) 308 580 51 84.6K (+60B)
github-actions[bot] commented 4 months ago

Unit Test Coverage

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

Coverage of changed lines | File | Function | Coverage | |----------------|---------------------------|----------| | Total | | 100.0% | | context.go | | 100.0% | | context.go:207 | StripDefinitionNamePrefix | 100.0% | | reflect.go | | 100.0% | | reflect.go:813 | MakePropertyNameMapping | 100.0% |
Coverage diff with base branch No changes in coverage.
github-actions[bot] commented 4 months ago

Benchmark Result

Benchmark diff with base branch ``` name old time/op new time/op delta Schema_UnmarshalJSON_raw-4 63.3µs ± 1% 62.6µs ± 1% -1.10% (p=0.002 n=6+6) Schema_UnmarshalJSON-4 502µs ± 2% 506µs ± 3% ~ (p=0.699 n=6+6) Schema_MarshalJSON_raw-4 44.2µs ± 0% 44.4µs ± 1% ~ (p=0.151 n=5+5) Schema_MarshalJSON-4 188µs ± 2% 185µs ± 1% ~ (p=0.065 n=6+6) name old alloc/op new alloc/op delta Schema_UnmarshalJSON_raw-4 31.7kB ± 0% 31.7kB ± 0% ~ (p=0.675 n=5+6) Schema_UnmarshalJSON-4 180kB ± 0% 180kB ± 0% ~ (p=1.000 n=6+6) Schema_MarshalJSON_raw-4 14.6kB ± 0% 14.6kB ± 0% ~ (p=0.242 n=6+5) Schema_MarshalJSON-4 53.9kB ± 0% 53.9kB ± 0% ~ (p=0.907 n=6+6) name old allocs/op new allocs/op delta Schema_UnmarshalJSON_raw-4 457 ± 0% 457 ± 0% ~ (all equal) Schema_UnmarshalJSON-4 1.85k ± 0% 1.85k ± 0% ~ (all equal) Schema_MarshalJSON_raw-4 370 ± 0% 370 ± 0% ~ (all equal) Schema_MarshalJSON-4 468 ± 0% 468 ± 0% ~ (all equal) ```
Benchmark result ``` name time/op Schema_UnmarshalJSON_raw-4 62.6µs ± 1% Schema_UnmarshalJSON-4 506µs ± 3% Schema_MarshalJSON_raw-4 44.4µs ± 1% Schema_MarshalJSON-4 185µs ± 1% name alloc/op Schema_UnmarshalJSON_raw-4 31.7kB ± 0% Schema_UnmarshalJSON-4 180kB ± 0% Schema_MarshalJSON_raw-4 14.6kB ± 0% Schema_MarshalJSON-4 53.9kB ± 0% name allocs/op Schema_UnmarshalJSON_raw-4 457 ± 0% Schema_UnmarshalJSON-4 1.85k ± 0% Schema_MarshalJSON_raw-4 370 ± 0% Schema_MarshalJSON-4 468 ± 0% ```
codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 73.98%. Comparing base (1f37953) to head (5f501b9).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #106 +/- ## ======================================= Coverage 73.98% 73.98% ======================================= Files 7 7 Lines 1207 1207 ======================================= Hits 893 893 Misses 243 243 Partials 71 71 ``` | [Flag](https://app.codecov.io/gh/swaggest/jsonschema-go/pull/106/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=swaggest) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/swaggest/jsonschema-go/pull/106/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=swaggest) | `73.98% <100.00%> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=swaggest#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

github-actions[bot] commented 4 months ago

Go API Changes

# summary
Inferred base version: v0.3.64
Suggested version: v0.3.65