Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
Update the code to handle the following case:
Imagine a test class import a src class but does not cover any lines
in the src class. Assume that the test class only has a test method
testExecNothing() and this method is executed before another test
method testExecSomething() in another test class. Assume the test
method testExecSomething() covers some lines in the src class. In the
original implementation, testExecNothing() shares the same hitArray as
testExecSomething() and this may lead to incorrect computation of the
suspiciousness scores. For example, if testExecSomething() fails,
then all lines covered by testExecSomething() will be treated as they
are executed twice as many times as they actually are because
testExecNothing()'s hitArray is updated by testExecSomething().
Check lists
Additional comments
Please add any information of interest here below.