drmohundro / SWXMLHash

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

Fix issue with subsequent lazy parsing calls #204

Closed drmohundro closed 5 years ago

drmohundro commented 5 years ago

Only part of the state was being reset between lazy calls. This bug fix ensures that the root element is also reset.

Fixes #203.

codecov-io commented 5 years ago

Codecov Report

Merging #204 into master will decrease coverage by 0.04%. The diff coverage is 33.33%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #204      +/-   ##
=========================================
- Coverage   26.64%   26.6%   -0.05%     
=========================================
  Files          15      15              
  Lines        2229    2233       +4     
=========================================
  Hits          594     594              
- Misses       1635    1639       +4
Impacted Files Coverage Δ
Tests/SWXMLHashTests/LazyXMLParsingTests.swift 0% <0%> (ø) :arrow_up:
Source/SWXMLHash.swift 77.75% <100%> (ø) :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 26b7613...da04998. Read the comment docs.