mirror of
https://github.com/github/codeql.git
synced 2026-03-30 20:28:15 +02:00
C#: Update partial method test to count the number of extracted bodies.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
| Partial.cs:7:18:7:42 | PartialMethodWithoutBody1 | false |
|
||||
| Partial.cs:19:18:19:39 | PartialMethodWithBody1 | true |
|
||||
| Partial.cs:20:27:20:48 | PartialMethodWithBody2 | true |
|
||||
| Partial.cs:46:18:46:42 | PartialMethodWithoutBody2 | false |
|
||||
| Partial.cs:7:18:7:42 | PartialMethodWithoutBody1 | false | 0 |
|
||||
| Partial.cs:19:18:19:39 | PartialMethodWithBody1 | true | 1 |
|
||||
| Partial.cs:20:27:20:48 | PartialMethodWithBody2 | true | 2 |
|
||||
| Partial.cs:46:18:46:42 | PartialMethodWithoutBody2 | false | 0 |
|
||||
|
||||
@@ -4,4 +4,4 @@ private boolean hasBody(Method m) { if m.hasBody() then result = true else resul
|
||||
|
||||
from Method m
|
||||
where m.fromSource() and m.isPartial()
|
||||
select m, hasBody(m)
|
||||
select m, hasBody(m), count(m.getBody())
|
||||
|
||||
Reference in New Issue
Block a user