Skip to content

Add tests for validation and parsing failures#105

Merged
mattrubin merged 6 commits into
masterfrom
tests
Nov 13, 2016
Merged

Add tests for validation and parsing failures#105
mattrubin merged 6 commits into
masterfrom
tests

Conversation

@mattrubin

@mattrubin mattrubin commented Nov 13, 2016

Copy link
Copy Markdown
Owner

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

codecov-io commented Nov 13, 2016

Copy link
Copy Markdown

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