@@ -8,23 +8,26 @@ import semmle.code.java.dataflow.internal.FlowSummaryImpl
8
8
* A CSV row to generate tests for. Users should extend this to define which
9
9
* tests to generate. Rows specified here should also satisfy `SummaryModelCsv.row`.
10
10
*/
11
- bindingset [ this ]
12
- abstract class TargetSummaryModelCsv extends string {
13
- predicate modelRowExists ( ) { any ( SummaryModelCsv smc ) .row ( this ) }
11
+ class TargetSummaryModelCsv extends Unit {
12
+ abstract predicate row ( string r ) ;
14
13
}
15
14
16
15
/**
17
16
* Gets a CSV row for which a test has been requested, but `SummaryModelCsv.row` does not hold of it.
18
17
*/
19
- query TargetSummaryModelCsv missingSummaryModelCsv ( ) { not result .modelRowExists ( ) }
18
+ query string missingSummaryModelCsv ( ) {
19
+ any ( TargetSummaryModelCsv target ) .row ( result ) and
20
+ not any ( SummaryModelCsv model ) .row ( result )
21
+ }
20
22
21
23
/**
22
24
* Gets a CSV row for which a test has been requested, and `SummaryModelCsv.row` does hold, but
23
25
* nonetheless we can't generate a test case for it, indicating we cannot resolve either the callable
24
26
* spec or an input or output spec.
25
27
*/
26
- query TargetSummaryModelCsv getAParseFailure ( string reason ) {
27
- result .modelRowExists ( ) and
28
+ query string getAParseFailure ( string reason ) {
29
+ any ( TargetSummaryModelCsv target ) .row ( result ) and
30
+ any ( SummaryModelCsv model ) .row ( result ) and
28
31
(
29
32
exists (
30
33
string namespace , string type , boolean subtypes , string name , string signature , string ext
0 commit comments