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

Encoding fixes. #25

Closed fabianfett closed 4 years ago

fabianfett commented 4 years ago

Thanks so much @adam-fowler.

This shall fix #21 and #19.

codecov-io commented 4 years ago

Codecov Report

Merging #25 into master will increase coverage by 0.83%. The diff coverage is 95.85%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #25      +/-   ##
==========================================
+ Coverage   87.97%   88.80%   +0.83%     
==========================================
  Files          32       34       +2     
  Lines        2918     3074     +156     
==========================================
+ Hits         2567     2730     +163     
+ Misses        351      344       -7     
Impacted Files Coverage Δ
...s/Encoding/JSONUnkeyedEncodingContainerTests.swift 94.28% <94.28%> (ø)
...ts/JSONCodingTests/Encoding/JSONEncoderTests.swift 87.69% <95.00%> (+3.24%) :arrow_up:
...sts/Encoding/JSONKeyedEncodingContainerTests.swift 95.12% <95.12%> (ø)
...ces/PureSwiftJSONCoding/Encoding/JSONEncoder.swift 91.30% <95.91%> (+6.68%) :arrow_up:
...ONCoding/Encoding/JSONKeyedEncodingContainer.swift 55.00% <100.00%> (+19.00%) :arrow_up:
...Coding/Encoding/JSONUnkeyedEncodingContainer.swift 46.55% <100.00%> (+25.71%) :arrow_up:

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 9071a99...69e3d42. Read the comment docs.