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

Export DefaultGenerator (formerly generator). #9

Merged
merged 1 commit into from
Jul 14, 2018
Merged

Export DefaultGenerator (formerly generator). #9

merged 1 commit into from
Jul 14, 2018

Conversation

niaow
Copy link
Member

@niaow niaow commented Jul 14, 2018

It was decided that DefaultGenerator should be exported because the pattern of NewVx() functions was similar to patterns in Go standard library packages (http.DefaultClient, flag.CommandLine, etc.). These standard library packages export their defaults. It is also impractical to write testable code using the UUID library without writing a custom Generator to wrap the NewVx() functions without this interface being exported.

@coveralls
Copy link

coveralls commented Jul 14, 2018

Pull Request Test Coverage Report for Build 20

  • 5 of 5 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 97.523%

Totals Coverage Status
Change from base Build 16: 0.0%
Covered Lines: 315
Relevant Lines: 323

💛 - Coveralls

It was decided that DefaultGenerator should be exported because the pattern of NewVx() functions was similar to patterns in Go standard
library packages (http.DefaultClient, flag.CommandLine, etc.). These standard library packages export their defaults. It is also impractical
to write testable code using the UUID library without writing a custom Generator to wrap the NewVx() functions without this interface being
exported.

Signed-off-by: Jaden Weiss <jadr2ddude@gmail.com>
@theckman theckman merged commit bdebc62 into gofrs:master Jul 14, 2018
theckman added a commit that referenced this pull request Jul 14, 2018
Export DefaultGenerator (formerly generator).

Signed-off-by: Tim Heckman <t@heckman.io>
@acln0 acln0 mentioned this pull request Jul 15, 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.

3 participants