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

Fix an issue that led to a crash, if an empty array was decoded #52

Closed fabianfett closed 4 years ago

fabianfett commented 4 years ago

Thanks @calebkleveter for reporting this

codecov[bot] commented 4 years ago

Codecov Report

Merging #52 into master will increase coverage by 0.05%. The diff coverage is 96.15%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #52      +/-   ##
==========================================
+ Coverage   90.68%   90.73%   +0.05%     
==========================================
  Files          40       40              
  Lines        3349     3378      +29     
==========================================
+ Hits         3037     3065      +28     
- Misses        312      313       +1     
Impacted Files Coverage Δ
...PureSwiftJSONTests/Decoding/JSONDecoderTests.swift 93.25% <94.44%> (+0.30%) :arrow_up:
...ftJSON/Decoding/JSONUnkeyedDecodingContainer.swift 95.23% <100.00%> (+0.04%) :arrow_up:
...PureSwiftJSONTests/Encoding/JSONEncoderTests.swift 94.25% <100.00%> (+0.50%) :arrow_up:
...ux/debug/testlist.derived/PureSwiftJSONTests.swift 100.00% <0.00%> (ø)
...kageTestsTestlist.derived/PureSwiftJSONTests.swift 100.00% <0.00%> (ø)

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 d6497c0...ea6648f. Read the comment docs.