• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

yuce / pot / 37
99%
master: 100%

Build:
Build:
LAST BUILD BRANCH: update-readme-mix-example
DEFAULT BRANCH: master
Ran 15 Oct 2019 07:03AM UTC
Jobs 4
Files 6
Run time 12s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
37

Pull #20

travis-ci

web-flow
Fix valid_totp to support upper bound on check_candidate

Resolves #18. The logic of `pot: valid_totp/2,3` incorrectly fails to evaluate the highest candidate when the `window` is set to a value greater than `0`. This is because the logic of `pot:check_candidate/5` short-circuits on `Current == Last` rather than `Current > Last`, which is what would be needed for it to work as expected.

This change alters `pot:check_candidate/5` to break on `Current > Last`, and updates the unit tests accordingly. Note that, because `pot:valid_hotp/2,3` **also** use  `pot:check_candidate/5`, this change extends by 1 the number of candidate trials that it will check when evaluating a hotp Token. This appears to also be a bug fix, because if you set `trials` to `1`, previously the next valid hotp Token would be rejected.

Unit tests have been added to cover the cases described above.
Pull Request #20: Fix valid_totp to support upper bound on check_candidate

6 of 6 new or added lines in 1 file covered. (100.0%)

411 of 417 relevant lines covered (98.56%)

7034.79 hits per line

Jobs
ID Job ID Ran Files Coverage
1 37.1 15 Oct 2019 07:03AM UTC 0
98.56
Travis Job 37.1
2 37.2 15 Oct 2019 07:03AM UTC 0
98.56
Travis Job 37.2
3 37.3 15 Oct 2019 07:03AM UTC 0
98.56
Travis Job 37.3
4 37.4 15 Oct 2019 07:03AM UTC 0
98.56
Travis Job 37.4
Source Files on build 37
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #37
  • Pull Request #20
  • PR Base - master (#34)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc