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

Various extensions to JSONValue #68

Open patrickfreed opened 3 years ago

patrickfreed commented 3 years ago

This PR adds the following extensions to the JSONValue enum:

codecov[bot] commented 3 years ago

Codecov Report

Merging #68 (1b1c179) into main (122b945) will increase coverage by 0.28%. The diff coverage is 84.52%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #68      +/-   ##
==========================================
+ Coverage   85.91%   86.19%   +0.28%     
==========================================
  Files          13       13              
  Lines        1271     1355      +84     
==========================================
+ Hits         1092     1168      +76     
- Misses        179      187       +8     
Impacted Files Coverage Δ
Sources/ExtrasJSON/JSONValue.swift 91.41% <84.52%> (-3.89%) :arrow_down:
...ON/Decoding/JSONSingleValueDecodingContainer.swift 100.00% <0.00%> (+3.17%) :arrow_up:
...ON/Encoding/JSONSingleValueEncodingContainer.swift 68.51% <0.00%> (+5.55%) :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 122b945...1b1c179. Read the comment docs.