Closed TristanSpeakEasy closed 3 months ago
Attention: Patch coverage is 87.50000%
with 2 lines
in your changes missing coverage. Please review.
Project coverage is 99.65%. Comparing base (
61b8a2f
) to head (ecc3d69
).
Files | Patch % | Lines |
---|---|---|
json/json.go | 87.50% | 2 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Bump those two lines of coverage, and it's good to go.
@daveshanley I didn't cover those lines as I really don't know how to inject invalid data into this to cause those to be covered.
If you have any ideas let me know and I will add tests
@daveshanley essential asking for a pass on dealing with those bits of coverage, though if you really do want them covered I guess a way forward is to unit test the internal functions directly (currently I am only testing the public interface with the package json_test
restriction in the test file) and manually trying to construct an invalid yaml.Node
I spent about 20 minutes and I could get one line covered, but the other is impossible to test as it's a deep catch.
Pass granted.
Makes it possible to render yaml that uses anchors and complex map keys