-
-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Treat all function signature nodes as 1-line range to avoid duplicate…
… TestLocations (#1619) Previously, `Node` of class `ClassMethod` returned a range for the whole method. Consider the following code: ``` class Test { public function findMe() // line 4 { // ... } // line 7 } ``` for this code, `ClassMethod` node returned a [4, 7] range instead of [4, 4]. Because of this, later *for each line* (4, 5, 6, 7) we found all the test cases that cover them. If we have 1 test case `TestClass::test_method_find_me` that covers `findMe()` method, then we returned 4 exactly the same duplicate test cases for `ClassMethod` mutation, one for each of (4, 5, 6, 7) lines. After this update, only 1 test case is returned for the function signature mutant
- Loading branch information
1 parent
af58050
commit c770354
Showing
4 changed files
with
35 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters