pwned-passwords
pwned-passwords copied to clipboard
Add count of compromises
This MR would resolve https://github.com/mattevans/pwned-passwords/issues/4 by adding a new method func (c *Client) CompromisedCount(value string) (bool, int64, error).
I turned func (c *Client) Compromised(value string) (bool, error) into a wrapper that simply doesn't return the int count. This maintains the API contract while minimizing extra lines of code.
I also containerized testing by adding a Makefile and Dockerfile, but those have no effect on functionality. I've been running make test repeatedly to validate changes; make build once to build the base image.
@NickBorgers Hey! Thanks for this. I'll set aside some time this weekend to review and get it merged. Appreciate it. 🥇
@NickBorgers Hey! Thanks for this. I'll set aside some time this weekend to review and get it merged. Appreciate it. 🥇
Bumping this. I don't understand what happened with the Travis CI job; I'm not sure my changes caused it.