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

Add ColumnReference type with new API #3

Merged
merged 11 commits into from
Nov 15, 2018
Merged

Add ColumnReference type with new API #3

merged 11 commits into from
Nov 15, 2018

Conversation

MaxDesiatov
Copy link
Collaborator

@MaxDesiatov MaxDesiatov commented Nov 15, 2018

Previously cell references were stringly-typed allowing a user to create a cell reference with an arbitrary string. This is fixed with an introduction of new types: CellReference and ColumnReference. ColumnReference is a simple wrapper around String that guards against empty string and characters that can't be used as column references. Rows don't need a separate type for references as they map neatly to UInt, although API parts that used row references have changed to use UInt instead of Int. This is a breaking change that requires a major version bump.

@codecov-io
Copy link

codecov-io commented Nov 15, 2018

Codecov Report

Merging #3 into master will increase coverage by 7%.
The diff coverage is 95.08%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master       #3   +/-   ##
=======================================
+ Coverage   88.23%   95.23%   +7%     
=======================================
  Files           2        4    +2     
  Lines          68      126   +58     
=======================================
+ Hits           60      120   +60     
+ Misses          8        6    -2
Impacted Files Coverage Δ
Sources/CoreXLSX/Worksheet.swift 100% <100%> (+100%) ⬆️
Sources/CoreXLSX/ColumnReference.swift 100% <100%> (ø)
Sources/CoreXLSX/CoreXLSX.swift 94.02% <83.33%> (+0.27%) ⬆️
Sources/CoreXLSX/CellReference.swift 93.54% <93.54%> (ø)

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 2fbb8d2...d2fe533. Read the comment docs.

@MaxDesiatov MaxDesiatov merged commit d6821da into master Nov 15, 2018
@delete-merged-branch delete-merged-branch bot deleted the reference-type branch November 15, 2018 11:37
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.

2 participants