-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure that calls to methods without parameter list are instrumented
- Loading branch information
1 parent
8d2f6c0
commit 9362f57
Showing
4 changed files
with
302 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
object A: | ||
def noParam = 0 | ||
|
||
object B: | ||
def f(x: Any) = println("f") | ||
def noParam = 0 | ||
|
||
def testSelect = | ||
A.noParam // call should be instrumented | ||
|
||
def testSelectArg = | ||
f(A.noParam) // arg should be lifted and instrumented | ||
|
||
def testIdent = | ||
noParam // call should be instrumented | ||
|
||
def testIdentArg = | ||
f(noParam) // arg should be lifted and instrumented |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,275 @@ | ||
# Coverage data, format version: 3.0 | ||
# Statement data: | ||
# - id | ||
# - source path | ||
# - package name | ||
# - class name | ||
# - class type (Class, Object or Trait) | ||
# - full class name | ||
# - method name | ||
# - start offset | ||
# - end offset | ||
# - line number | ||
# - symbol name | ||
# - tree name | ||
# - is branch | ||
# - invocations count | ||
# - is ignored | ||
# - description (can be multi-line) | ||
# '' sign | ||
# ------------------------------------------ | ||
0 | ||
NoParams.scala | ||
<empty> | ||
A$ | ||
Object | ||
<empty>.A$ | ||
noParam | ||
12 | ||
23 | ||
1 | ||
noParam | ||
DefDef | ||
false | ||
0 | ||
false | ||
def noParam | ||
|
||
1 | ||
NoParams.scala | ||
<empty> | ||
B$ | ||
Object | ||
<empty>.B$ | ||
f | ||
57 | ||
64 | ||
4 | ||
println | ||
Ident | ||
false | ||
0 | ||
false | ||
println | ||
|
||
2 | ||
NoParams.scala | ||
<empty> | ||
B$ | ||
Object | ||
<empty>.B$ | ||
f | ||
57 | ||
69 | ||
4 | ||
<none> | ||
Apply | ||
false | ||
0 | ||
false | ||
println("f") | ||
|
||
3 | ||
NoParams.scala | ||
<empty> | ||
B$ | ||
Object | ||
<empty>.B$ | ||
f | ||
41 | ||
46 | ||
4 | ||
f | ||
DefDef | ||
false | ||
0 | ||
false | ||
def f | ||
|
||
4 | ||
NoParams.scala | ||
<empty> | ||
B$ | ||
Object | ||
<empty>.B$ | ||
noParam | ||
72 | ||
83 | ||
5 | ||
noParam | ||
DefDef | ||
false | ||
0 | ||
false | ||
def noParam | ||
|
||
5 | ||
NoParams.scala | ||
<empty> | ||
B$ | ||
Object | ||
<empty>.B$ | ||
testSelect | ||
112 | ||
121 | ||
8 | ||
noParam | ||
Select | ||
false | ||
0 | ||
false | ||
A.noParam | ||
|
||
6 | ||
NoParams.scala | ||
<empty> | ||
B$ | ||
Object | ||
<empty>.B$ | ||
testSelect | ||
91 | ||
105 | ||
7 | ||
testSelect | ||
DefDef | ||
false | ||
0 | ||
false | ||
def testSelect | ||
|
||
7 | ||
NoParams.scala | ||
<empty> | ||
B$ | ||
Object | ||
<empty>.B$ | ||
testSelectArg | ||
182 | ||
191 | ||
11 | ||
noParam | ||
Select | ||
false | ||
0 | ||
false | ||
A.noParam | ||
|
||
8 | ||
NoParams.scala | ||
<empty> | ||
B$ | ||
Object | ||
<empty>.B$ | ||
testSelectArg | ||
180 | ||
192 | ||
11 | ||
f | ||
Apply | ||
false | ||
0 | ||
false | ||
f(A.noParam) | ||
|
||
9 | ||
NoParams.scala | ||
<empty> | ||
B$ | ||
Object | ||
<empty>.B$ | ||
testSelectArg | ||
156 | ||
173 | ||
10 | ||
testSelectArg | ||
DefDef | ||
false | ||
0 | ||
false | ||
def testSelectArg | ||
|
||
10 | ||
NoParams.scala | ||
<empty> | ||
B$ | ||
Object | ||
<empty>.B$ | ||
testIdent | ||
257 | ||
264 | ||
14 | ||
noParam | ||
Ident | ||
false | ||
0 | ||
false | ||
noParam | ||
|
||
11 | ||
NoParams.scala | ||
<empty> | ||
B$ | ||
Object | ||
<empty>.B$ | ||
testIdent | ||
237 | ||
250 | ||
13 | ||
testIdent | ||
DefDef | ||
false | ||
0 | ||
false | ||
def testIdent | ||
|
||
12 | ||
NoParams.scala | ||
<empty> | ||
B$ | ||
Object | ||
<empty>.B$ | ||
testIdentArg | ||
324 | ||
331 | ||
17 | ||
noParam | ||
Ident | ||
false | ||
0 | ||
false | ||
noParam | ||
|
||
13 | ||
NoParams.scala | ||
<empty> | ||
B$ | ||
Object | ||
<empty>.B$ | ||
testIdentArg | ||
322 | ||
332 | ||
17 | ||
f | ||
Apply | ||
false | ||
0 | ||
false | ||
f(noParam) | ||
|
||
14 | ||
NoParams.scala | ||
<empty> | ||
B$ | ||
Object | ||
<empty>.B$ | ||
testIdentArg | ||
299 | ||
315 | ||
16 | ||
testIdentArg | ||
DefDef | ||
false | ||
0 | ||
false | ||
def testIdentArg | ||
|