-
Notifications
You must be signed in to change notification settings - Fork 31
Add a unit test for AddedVersusDeletedLinesForensicsSeriesBuilder
#350
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 a unit test for AddedVersusDeletedLinesForensicsSeriesBuilder
#350
Conversation
AddedVersusDeletedLinesForensicsSeriesBuilder
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a small change required.
// Given | ||
AddedVersusDeletedLinesForensicsSeriesBuilder builder = new AddedVersusDeletedLinesForensicsSeriesBuilder(); | ||
ForensicsBuildAction actionStub = mock(ForensicsBuildAction.class); | ||
when(actionStub.getCommitStatistics()).thenReturn(createCommitStatistics(0, 0)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use different values so we see that the key mapping is correct.
|
||
} | ||
|
||
private CommitStatistics createCommitStatistics(final int added, final int delted) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private CommitStatistics createCommitStatistics(final int added, final int delted) { | |
private CommitStatistics createCommitStatistics(final int added, final int deleted) { |
Codecov Report
@@ Coverage Diff @@
## master #350 +/- ##
============================================
+ Coverage 50.04% 50.59% +0.54%
- Complexity 253 256 +3
============================================
Files 42 42
Lines 1093 1093
Branches 92 92
============================================
+ Hits 547 553 +6
+ Misses 510 504 -6
Partials 36 36
Continue to review full report at Codecov.
|
AddedVersusDeletedLinesForensicsSeriesBuilder
AddedVersusDeletedLinesForensicsSeriesBuilder
A first test for
AddedVersusDeletedLinesForensicsSeriesBuilder
that uses Mockito