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 count of compromises #13

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

NickBorgers
Copy link

@NickBorgers NickBorgers commented Jul 30, 2022

This MR would resolve #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.

@mattevans
Copy link
Owner

@NickBorgers Hey! Thanks for this. I'll set aside some time this weekend to review and get it merged. Appreciate it. 🥇

@NickBorgers
Copy link
Author

@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.

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.

Provide the number of times a particular password was pwned
3 participants