jmattheis / goverter

Generate type-safe Go converters by simply defining an interface
https://goverter.jmattheis.de/
MIT License
487 stars 46 forks source link

Improve error returns #57

Closed jmattheis closed 1 year ago

jmattheis commented 1 year ago

Fixes #19

codecov[bot] commented 1 year ago

Codecov Report

Base: 96.51% // Head: 96.00% // Decreases project coverage by -0.51% :warning:

Coverage data is based on head (65337c8) compared to base (62f4801). Patch coverage: 83.33% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #57 +/- ## ========================================== - Coverage 96.51% 96.00% -0.51% ========================================== Files 23 23 Lines 1348 1378 +30 ========================================== + Hits 1301 1323 +22 - Misses 29 34 +5 - Partials 18 21 +3 ``` | [Impacted Files](https://codecov.io/gh/jmattheis/goverter/pull/57?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jannis+Mattheis) | Coverage Δ | | |---|---|---| | [generator/generator.go](https://codecov.io/gh/jmattheis/goverter/pull/57?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jannis+Mattheis#diff-Z2VuZXJhdG9yL2dlbmVyYXRvci5nbw==) | `95.06% <78.94%> (-3.13%)` | :arrow_down: | | [builder/basic.go](https://codecov.io/gh/jmattheis/goverter/pull/57?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jannis+Mattheis#diff-YnVpbGRlci9iYXNpYy5nbw==) | `100.00% <100.00%> (ø)` | | | [builder/builder.go](https://codecov.io/gh/jmattheis/goverter/pull/57?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jannis+Mattheis#diff-YnVpbGRlci9idWlsZGVyLmdv) | `100.00% <100.00%> (ø)` | | | [builder/list.go](https://codecov.io/gh/jmattheis/goverter/pull/57?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jannis+Mattheis#diff-YnVpbGRlci9saXN0Lmdv) | `100.00% <100.00%> (ø)` | | | [builder/map.go](https://codecov.io/gh/jmattheis/goverter/pull/57?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jannis+Mattheis#diff-YnVpbGRlci9tYXAuZ28=) | `100.00% <100.00%> (ø)` | | | [builder/pointer.go](https://codecov.io/gh/jmattheis/goverter/pull/57?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jannis+Mattheis#diff-YnVpbGRlci9wb2ludGVyLmdv) | `100.00% <100.00%> (ø)` | | | [builder/struct.go](https://codecov.io/gh/jmattheis/goverter/pull/57?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jannis+Mattheis#diff-YnVpbGRlci9zdHJ1Y3QuZ28=) | `98.90% <100.00%> (+<0.01%)` | :arrow_up: | | [example/errors/generated/generated.go](https://codecov.io/gh/jmattheis/goverter/pull/57?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jannis+Mattheis#diff-ZXhhbXBsZS9lcnJvcnMvZ2VuZXJhdGVkL2dlbmVyYXRlZC5nbw==) | `100.00% <100.00%> (ø)` | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jannis+Mattheis). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jannis+Mattheis)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.