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

Fixed a bug that would cause XMLEncoder to throw on Encodables encoding nothing #31

Merged
merged 3 commits into from Dec 21, 2018
Merged

Fixed a bug that would cause XMLEncoder to throw on Encodables encoding nothing #31

merged 3 commits into from Dec 21, 2018

Conversation

regexident
Copy link
Contributor

By encoding via func encode(_:withRootKey:header:) we always get an XML root node with label rootKey, so not encoding anything within func encode(to:) is fine in XML (unlike JSON).

@codecov
Copy link

codecov bot commented Dec 21, 2018

Codecov Report

Merging #31 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #31   +/-   ##
=======================================
  Coverage   51.57%   51.57%           
=======================================
  Files          29       29           
  Lines        1400     1400           
=======================================
  Hits          722      722           
  Misses        678      678
Impacted Files Coverage Δ
Sources/XMLCoder/Encoder/XMLEncoder.swift 48.21% <100%> (ø) ⬆️

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 1f0cb9d...afee273. Read the comment docs.

@MaxDesiatov
Copy link
Collaborator

@regexident we got an intermittent problem with force-pushing to the same branch, but I think I got it fixed now, sorry about that.

@MaxDesiatov MaxDesiatov merged commit 099272e into CoreOffice:master Dec 21, 2018
@regexident regexident deleted the fix/encoding-bug branch December 21, 2018 21:19
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.

None yet

2 participants