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 Asserter Tests #12

Merged
merged 3 commits into from
Apr 15, 2020
Merged

Add Asserter Tests #12

merged 3 commits into from
Apr 15, 2020

Conversation

patrick-ogrady
Copy link
Contributor

Motivation

Asserter.NewWithResponses function arguments were not checked for correctness and the function did not have any tests.

Solution

Added assertion for inputs and added tests. This caught a few issues in tests that were initializing the asserter with incorrect responses.

@coveralls
Copy link

coveralls commented Apr 15, 2020

Pull Request Test Coverage Report for Build 534

  • 20 of 32 (62.5%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+2.6%) to 89.417%

Changes Missing Coverage Covered Lines Changed/Added Lines %
asserter/block.go 14 26 53.85%
Totals Coverage Status
Change from base Build 506: 2.6%
Covered Lines: 414
Relevant Lines: 463

💛 - Coveralls

@patrick-ogrady patrick-ogrady merged commit 8738190 into master Apr 15, 2020
@patrick-ogrady patrick-ogrady deleted the patrick/asserter-bug branch April 15, 2020 17:46
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