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

Clean up coding logic, reducing hard to maintain code duplication; improve box naming #27

Merged
merged 7 commits into from
Dec 21, 2018
Merged

Conversation

regexident
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Dec 21, 2018

Codecov Report

Merging #27 into master will increase coverage by 1.89%.
The diff coverage is 28.35%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #27      +/-   ##
==========================================
+ Coverage   48.66%   50.55%   +1.89%     
==========================================
  Files          28       28              
  Lines        1644     1351     -293     
==========================================
- Hits          800      683     -117     
+ Misses        844      668     -176
Impacted Files Coverage Δ
Sources/XMLCoder/Box/StringBox.swift 100% <ø> (+14.28%) ⬆️
Sources/XMLCoder/Box/FloatBox.swift 90% <ø> (+8.18%) ⬆️
Sources/XMLCoder/Box/DecimalBox.swift 85.71% <ø> (+10.71%) ⬆️
Sources/XMLCoder/Box/DateBox.swift 91.48% <ø> (+3.73%) ⬆️
Sources/XMLCoder/Box/IntBox.swift 85.71% <ø> (+10.71%) ⬆️
Sources/XMLCoder/Box/DataBox.swift 89.47% <ø> (+8.52%) ⬆️
Sources/XMLCoder/Decoder/XMLDecodingStorage.swift 81.81% <ø> (ø) ⬆️
Sources/XMLCoder/Box/UIntBox.swift 85.71% <ø> (+10.71%) ⬆️
...rces/XMLCoder/Decoder/DecodingErrorExtension.swift 0% <ø> (ø) ⬆️
Sources/XMLCoder/Box/NullBox.swift 33.33% <ø> (+6.06%) ⬆️
... and 15 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 27bf224...cd0cdc7. Read the comment docs.

Copy link
Collaborator

@MaxDesiatov MaxDesiatov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! LGTM except additions of trailing whitespaces

Sources/XMLCoder/Decoder/XMLKeyedDecodingContainer.swift Outdated Show resolved Hide resolved
What’s interesting about `ArrayBox` is its unkeyed semantics, not the fact it’s currently using an `Array` as storage, which is an implementation detail after all.
What’s interesting about `DictionaryBox` is its keyed semantics, not the fact it’s currently using an `Dictionary` as storage, which is an implementation detail after all, and expected to be changed soon, even (to preserve element order).
@regexident
Copy link
Contributor Author

Should be ready to merge now. 🙂

@MaxDesiatov MaxDesiatov merged commit 57b7b20 into CoreOffice:master Dec 21, 2018
@regexident regexident deleted the fix/cleanup-coder branch December 21, 2018 20:25
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.

3 participants