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

Maximal number of errors reported by each comparison func settable #12

Merged
merged 2 commits into from
Jun 4, 2018

Conversation

maxatome
Copy link
Owner

@maxatome maxatome commented Jun 4, 2018

See DefaultContextConfig variable and ContextConfig type.

TESTDEEP_MAX_ERRORS environment variable can be used to externally
override ContextConfig.MaxErrors default setting:
TESTDEEP_MAX_ERRORS=3 go test # up to 3 errors dumped for each comp func
TESTDEEP_MAX_ERRORS=-1 go test # all errors dumped for each comparison func

The RootName of got data is now settable too. Still in ContextConfig.

NewT() accepts now an optional ContextConfig parameter.

Error stringifigation reworked and more efficient.

Signed-off-by: Maxime Soulé btik-git@scoubidou.com

See DefaultContextConfig variable and ContextConfig type.

TESTDEEP_MAX_ERRORS environment variable can be used to externally
override ContextConfig.MaxErrors default setting:
    TESTDEEP_MAX_ERRORS=3 go test  # up to 3 errors dumped for each comp func
    TESTDEEP_MAX_ERRORS=-1 go test # all errors dumped for each comparison func

The RootName of got data is now settable too. Still in ContextConfig.

NewT() accepts now an optional ContextConfig parameter.

Error stringifigation reworked and more efficient.

Signed-off-by: Maxime Soulé <btik-git@scoubidou.com>
@coveralls
Copy link

coveralls commented Jun 4, 2018

Pull Request Test Coverage Report for Build 53

  • 337 of 339 (99.41%) changed or added relevant lines in 24 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.03%) to 98.915%

Changes Missing Coverage Covered Lines Changed/Added Lines %
td_between.go 8 9 88.89%
td_trunc_time.go 4 5 80.0%
Totals Coverage Status
Change from base Build 49: 0.03%
Covered Lines: 3192
Relevant Lines: 3227

💛 - Coveralls

Signed-off-by: Maxime Soulé <btik-git@scoubidou.com>
@maxatome maxatome merged commit 2538ec5 into master Jun 4, 2018
@maxatome maxatome deleted the ContextConfig branch June 12, 2018 21:09
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

2 participants