@@ -8,23 +8,26 @@ import semmle.code.java.dataflow.internal.FlowSummaryImpl
88 * A CSV row to generate tests for. Users should extend this to define which
99 * tests to generate. Rows specified here should also satisfy `SummaryModelCsv.row`.
1010 */
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 ) ;
1413}
1514
1615/**
1716 * Gets a CSV row for which a test has been requested, but `SummaryModelCsv.row` does not hold of it.
1817 */
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+ }
2022
2123/**
2224 * Gets a CSV row for which a test has been requested, and `SummaryModelCsv.row` does hold, but
2325 * nonetheless we can't generate a test case for it, indicating we cannot resolve either the callable
2426 * spec or an input or output spec.
2527 */
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
2831 (
2932 exists (
3033 string namespace , string type , boolean subtypes , string name , string signature , string ext
0 commit comments