drmohundro / SWXMLHash

Simple XML parsing in Swift
MIT License
1.41k stars 205 forks source link

Add userInfo support #171

Closed drmohundro closed 6 years ago

drmohundro commented 6 years ago

Adds userInfo support (similar to that from Codable) - for consistency, it even uses the CodingUserInfoKey for the hash.

In addition, I also cleaned up some of the parameters to XMLElement.

Fixes #167

codecov-io commented 6 years ago

Codecov Report

Merging #171 into master will decrease coverage by 0.2%. The diff coverage is 25.75%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #171      +/-   ##
==========================================
- Coverage   26.64%   26.43%   -0.21%     
==========================================
  Files          13       13              
  Lines        1963     2020      +57     
==========================================
+ Hits          523      534      +11     
- Misses       1440     1486      +46
Impacted Files Coverage Δ
...SWXMLHashTests/TypeConversionBasicTypesTests.swift 0% <0%> (ø) :arrow_up:
...ests/SWXMLHashTests/LazyTypesConversionTests.swift 0% <0%> (ø) :arrow_up:
Source/SWXMLHash.swift 76.09% <89.47%> (+0.23%) :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 6d2b827...a2511c1. Read the comment docs.