Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix decoding empty element as optional #92

Merged
merged 6 commits into from May 1, 2019
Merged

Conversation

MaxDesiatov
Copy link
Collaborator

@MaxDesiatov MaxDesiatov commented Apr 29, 2019

Fix an issue uncovered by CoreOffice/CoreXLSX#59. Also include slightly unrelated cleanups.

Resolves #94

@MaxDesiatov MaxDesiatov self-assigned this Apr 29, 2019
@MaxDesiatov MaxDesiatov changed the title Fix empty element decoded as optional Fix decoding empty element as optional Apr 29, 2019
@codecov
Copy link

codecov bot commented Apr 29, 2019

Codecov Report

Merging #92 into master will increase coverage by 0.07%.
The diff coverage is 85.71%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #92      +/-   ##
==========================================
+ Coverage   76.97%   77.05%   +0.07%     
==========================================
  Files          38       38              
  Lines        2111     2114       +3     
==========================================
+ Hits         1625     1629       +4     
+ Misses        486      485       -1
Impacted Files Coverage Δ
Sources/XMLCoder/Auxiliaries/Box/DateBox.swift 95.55% <ø> (-0.19%) ⬇️
Sources/XMLCoder/Auxiliaries/Box/DataBox.swift 100% <ø> (ø) ⬆️
Sources/XMLCoder/Auxiliaries/Box/SharedBox.swift 100% <ø> (ø) ⬆️
Sources/XMLCoder/Auxiliaries/Box/DecimalBox.swift 100% <ø> (ø) ⬆️
Sources/XMLCoder/Auxiliaries/Box/URLBox.swift 100% <ø> (ø) ⬆️
Sources/XMLCoder/Auxiliaries/Box/UnkeyedBox.swift 100% <ø> (ø) ⬆️
Sources/XMLCoder/Auxiliaries/Box/BoolBox.swift 100% <ø> (ø) ⬆️
Sources/XMLCoder/Auxiliaries/Box/StringBox.swift 100% <ø> (ø) ⬆️
Sources/XMLCoder/Decoder/XMLDecoder.swift 82.85% <100%> (+2.3%) ⬆️
Sources/XMLCoder/Auxiliaries/XMLStackParser.swift 93.87% <100%> (+0.32%) ⬆️
... and 3 more

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 38a0f17...bc5192f. Read the comment docs.

@MaxDesiatov MaxDesiatov assigned hodovani and unassigned MaxDesiatov Apr 29, 2019
@MaxDesiatov MaxDesiatov assigned MaxDesiatov and unassigned hodovani Apr 29, 2019
@MaxDesiatov MaxDesiatov removed the request for review from hodovani April 29, 2019 20:41
@MaxDesiatov MaxDesiatov added the work in progress Not ready to merge or to be closed label Apr 29, 2019
@MaxDesiatov MaxDesiatov removed the work in progress Not ready to merge or to be closed label Apr 30, 2019
@MaxDesiatov MaxDesiatov assigned hodovani and unassigned MaxDesiatov Apr 30, 2019
@MaxDesiatov MaxDesiatov merged commit 3575c88 into master May 1, 2019
@delete-merged-branch delete-merged-branch bot deleted the space-preserve branch May 1, 2019 11:29
arjungupta0107 pushed a commit to salido/XMLCoder that referenced this pull request Jun 26, 2020
Fix an issue uncovered by CoreOffice/CoreXLSX#59. Also include slightly unrelated cleanups.

Resolve CoreOffice#94 

* Fix empty element decoded as optional
* Add failing test case to SpacePreserveTest
* Disable `nesting` SwiftLint rule
* Fix handling of nested empty string values
* Add trimValueWhitespaces property on XMLDecoder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Trimmed whitespace on decoding String
3 participants