Skip to content

Commit ce8ab0e

Browse files
Simplify test predicate implementation.
Co-authored-by: Anders Schack-Mulligen <[email protected]>
1 parent 0e7179c commit ce8ab0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/ql/test/utils/model-generator/typebasedflow/CaptureTypeBasedSummaryModels.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ private string flows() { exists(TypeBasedFlowTargetApi api | result = captureFlo
1010
query predicate unexpectedSummary(string msg) {
1111
exists(string flow |
1212
flow = flows() and
13-
not exists(string e | e = expects() and e = flow) and
13+
not flow = expects() and
1414
msg = "Unexpected summary found: " + flow
1515
)
1616
}
1717

1818
query predicate expectedSummary(string msg) {
1919
exists(string e |
2020
e = expects() and
21-
not exists(string flow | flow = flows() and e = flow) and
21+
not e = flows() and
2222
msg = "Expected summary missing: " + e
2323
)
2424
}

0 commit comments

Comments
 (0)