omissis / go-jsonschema

A tool to generate Go data types from JSON Schema definitions.
MIT License
582 stars 93 forks source link

fix: rework tests in order to make the dedicated module work without replacements #148

Closed omissis closed 1 year ago

omissis commented 1 year ago

fixes #131

codecov[bot] commented 1 year ago

Codecov Report

All modified lines are covered by tests :white_check_mark:

Comparison is base (b0ec161) 61.84% compared to head (1c0b634) 55.56%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #148 +/- ## ========================================== - Coverage 61.84% 55.56% -6.28% ========================================== Files 23 15 -8 Lines 2034 1634 -400 ========================================== - Hits 1258 908 -350 + Misses 692 619 -73 - Partials 84 107 +23 ``` | [Files](https://app.codecov.io/gh/omissis/go-jsonschema/pull/148?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Claudio+Beatrice) | Coverage Δ | | |---|---|---| | [tests/data/extraImports/gopkgYAMLv3/gopkgYAMLv3.go](https://app.codecov.io/gh/omissis/go-jsonschema/pull/148?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Claudio+Beatrice#diff-dGVzdHMvZGF0YS9leHRyYUltcG9ydHMvZ29wa2dZQU1MdjMvZ29wa2dZQU1MdjMuZ28=) | `20.00% <ø> (ø)` | | | [tests/data/validation/maxLength/maxLength.go](https://app.codecov.io/gh/omissis/go-jsonschema/pull/148?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Claudio+Beatrice#diff-dGVzdHMvZGF0YS92YWxpZGF0aW9uL21heExlbmd0aC9tYXhMZW5ndGguZ28=) | `71.42% <100.00%> (ø)` | | | [tests/data/validation/minLength/minLength.go](https://app.codecov.io/gh/omissis/go-jsonschema/pull/148?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Claudio+Beatrice#diff-dGVzdHMvZGF0YS92YWxpZGF0aW9uL21pbkxlbmd0aC9taW5MZW5ndGguZ28=) | `71.42% <100.00%> (ø)` | | | [tests/helpers/checks.go](https://app.codecov.io/gh/omissis/go-jsonschema/pull/148?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Claudio+Beatrice#diff-dGVzdHMvaGVscGVycy9jaGVja3MuZ28=) | `16.66% <ø> (ø)` | | ... and [15 files with indirect coverage changes](https://app.codecov.io/gh/omissis/go-jsonschema/pull/148/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Claudio+Beatrice)

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