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 an interface for DatabaseReader to allow mocking #34

Merged
merged 2 commits into from
Apr 23, 2015
Merged

Add an interface for DatabaseReader to allow mocking #34

merged 2 commits into from
Apr 23, 2015

Conversation

ymost
Copy link

@ymost ymost commented Feb 25, 2015

Using an interface allows applications that use the DatabaseReader class to mock it in tests. The existing interface (GeoIp2Provider) only covers 2 methods. The new interface (IDatabaseReader) covers all 6 methods.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 86.7% when pulling d22f9aa on ymost:master into 2c0c08f on maxmind:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same at 86.7% when pulling d22f9aa on ymost:master into 2c0c08f on maxmind:master.

@oschwald
Copy link
Member

Thanks. I am going to change the name on this to make it more consistent with the existing interface.

oschwald added a commit that referenced this pull request Apr 23, 2015
Add an interface for DatabaseReader to allow mocking
@oschwald oschwald merged commit 042d623 into maxmind:master Apr 23, 2015
@ymost
Copy link
Author

ymost commented Apr 25, 2015

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants