swift-extras / swift-extras-json

JSON encoding and decoding without the use of Foundation in pure Swift.
Apache License 2.0
348 stars 15 forks source link

Handle errors when decoding #11

Closed fabianfett closed 4 years ago

codecov-io commented 4 years ago

Codecov Report

Merging #11 into master will increase coverage by 12.69%. The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           master      #11       +/-   ##
===========================================
+ Coverage   76.88%   89.57%   +12.69%     
===========================================
  Files          24       30        +6     
  Lines        2405     4125     +1720     
===========================================
+ Hits         1849     3695     +1846     
+ Misses        556      430      -126     
Impacted Files Coverage Δ
.../PureSwiftJSONCoding/JSONError+DecodingError.swift 46.55% <0.00%> (ø)
...sts/Decoding/JSONKeyedDecodingContainerTests.swift 95.10% <0.00%> (ø)
...sts/LearningTests/FoundationJSONDecoderTests.swift 94.57% <0.00%> (ø)
...coding/JSONSingleValueDecodingContainerTests.swift 93.29% <0.00%> (ø)
Tests/JSONCodingTests/ArrayKeyTests.swift 100.00% <0.00%> (ø)
...s/Decoding/JSONUnkeyedDecodingContainerTests.swift 92.08% <0.00%> (ø)
Sources/PureSwiftJSONParsing/JSONValue.swift 95.91% <0.00%> (+0.49%) :arrow_up:
...ONCoding/Decoding/JSONKeyedDecodingContainer.swift 91.04% <0.00%> (+56.59%) :arrow_up:
Sources/PureSwiftJSONCoding/ArrayKey.swift 82.35% <0.00%> (+57.35%) :arrow_up:
...Coding/Decoding/JSONUnkeyedDecodingContainer.swift 94.00% <0.00%> (+77.55%) :arrow_up:
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update bd1d373...e601e04. Read the comment docs.