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

Abstracted generating logic behind Generator interface for easy mocking in tests #62

Closed
wants to merge 1 commit into from

Conversation

alexeykudinkin
Copy link
Contributor

This confines all the generation related state inside the generator object itself, allowing easy mocking in tests, w/o hijacking global crypto/rand reader

Moved all the generation related logic into generator.go;

Abstracted behind `Generator` interface for easy mocking in tests
@coveralls
Copy link

coveralls commented Oct 23, 2017

Coverage Status

Coverage increased (+0.2%) to 96.809% when pulling b38d2c9 on alexeykudinkin:gen-split into 5bf94b6 on satori:master.

satori added a commit that referenced this pull request Jan 2, 2018
Abstracted generating logic behind `Generator` interface for easy
mocking in tests.
@satori satori mentioned this pull request Jan 2, 2018
@satori
Copy link
Owner

satori commented Jan 2, 2018

Merged in ceccb20 with some minor adjustments.

@satori satori closed this Jan 2, 2018
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.

None yet

3 participants