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

Keep the order of the attributes during encoding operations #110

Merged
merged 3 commits into from Jun 30, 2019

Conversation

acecilia
Copy link
Contributor

This PR fixes #108 by replacing the unordered data structure used for storing the attributes (a Swift Dictionary) with an ordered data structure: an array of Attribute structs.

@codecov
Copy link

codecov bot commented Jun 30, 2019

Codecov Report

Merging #110 into master will decrease coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #110      +/-   ##
==========================================
- Coverage   76.24%   76.21%   -0.03%     
==========================================
  Files          38       38              
  Lines        2054     2052       -2     
==========================================
- Hits         1566     1564       -2     
  Misses        488      488
Impacted Files Coverage Δ
Sources/XMLCoder/Auxiliaries/XMLCoderElement.swift 97.1% <100%> (-0.07%) ⬇️
Sources/XMLCoder/Auxiliaries/XMLStackParser.swift 94% <100%> (+0.12%) ⬆️

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 1d1faeb...7dc9b93. Read the comment docs.

@MaxDesiatov MaxDesiatov merged commit 30c617a into CoreOffice:master Jun 30, 2019
arjungupta0107 pushed a commit to salido/XMLCoder that referenced this pull request Jun 26, 2020
…ce#110)

This PR fixes CoreOffice#108 by replacing the unordered data structure used for storing the attributes (a Swift `Dictionary`) with an ordered data structure: an array of `Attribute` structs.

* Added tests to validate attribute order when encoding
* Fix CoreOffice#108
* Improved encapsulation of XMLCoderElement's properties
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.

The order of the attributes changes randomly
2 participants