Skip to content

Refactor token URL parsing#150

Merged
mattrubin merged 19 commits into
developfrom
parse-refactor
Oct 11, 2017
Merged

Refactor token URL parsing#150
mattrubin merged 19 commits into
developfrom
parse-refactor

Conversation

@mattrubin

@mattrubin mattrubin commented Oct 10, 2017

Copy link
Copy Markdown
Owner

Refactor the parsing of URL into Token, replacing the complex generic parsing helper with dedicated throwing helper methods and an overall more functional, decomposed structure. Also, improve testing of several parsing edge cases.

@codecov

codecov Bot commented Oct 10, 2017

Copy link
Copy Markdown

Codecov Report

Merging #150 into develop will decrease coverage by 0.43%.
The diff coverage is 96.87%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #150      +/-   ##
===========================================
- Coverage     94.7%   94.27%   -0.44%     
===========================================
  Files            6        6              
  Lines          378      384       +6     
===========================================
+ Hits           358      362       +4     
- Misses          20       22       +2
Impacted Files Coverage Δ
Sources/Token+URL.swift 96.89% <96.87%> (-1.48%) ⬇️

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 98713ff...f518450. Read the comment docs.

Comment thread Sources/Token+URL.swift
throw DeserializationError.missingSecret
}
guard let generator = Generator(factor: factor, secret: secret, algorithm: algorithm, digits: digits) else {
// TODO: Convert Generator's failable initializer to a throwable initializer, and rethrow its errors.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Todo Violation: TODOs should be avoided (Convert Generator's failable i...). (todo)

Repository owner deleted a comment from codecov Bot Oct 11, 2017
@mattrubin mattrubin merged commit bc5d910 into develop Oct 11, 2017
@mattrubin mattrubin deleted the parse-refactor branch October 11, 2017 02:46
@mattrubin mattrubin added this to the 3.1 milestone Mar 17, 2018
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