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 tests for validation and parsing failures #105

Merged
merged 6 commits into from
Nov 13, 2016
Merged

Add tests for validation and parsing failures #105

merged 6 commits into from
Nov 13, 2016

Conversation

mattrubin
Copy link
Owner

@mattrubin mattrubin commented Nov 13, 2016

Add several tests which cover validation failures when generating a password and parsing failures when constructing a Token from a URL.

Also, fix a bug revealed by the tests, where parsing a URL with a non-integral counter parameter would return a token with an incorrect counter value.

@codecov-io
Copy link

codecov-io commented Nov 13, 2016

Current coverage is 95.06% (diff: 100%)

Merging #105 into master will increase coverage by 2.69%

@@             master       #105   diff @@
==========================================
  Files             6          6          
  Lines           367        365     -2   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits            339        347     +8   
+ Misses           28         18    -10   
  Partials          0          0          

Powered by Codecov. Last update f719aea...61da660

@mattrubin mattrubin added this to the 2.1 milestone Nov 13, 2016
@mattrubin mattrubin changed the title Add tests for validation failures Add tests for validation and parsing failures Nov 13, 2016
@mattrubin mattrubin merged commit 326ed07 into master Nov 13, 2016
@mattrubin mattrubin deleted the tests branch November 13, 2016 20:30
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