Skip to content

Commit 26b048a

Browse files
committed
Address review comment
1 parent 95e9d01 commit 26b048a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

shared/dataflow/codeql/dataflow/test/ProvenancePathGraph.qll

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ signature class PathNodeSig {
1717
private signature predicate provenanceSig(string model);
1818

1919
private module TranslateModels<
20-
interpretModelForTestSig/2 interpretModelForTest, provenanceSig/1 provenance>
20+
interpretModelForTestSig/2 interpretModelForTest0, provenanceSig/1 provenance>
2121
{
2222
private predicate madIds(string madId) {
2323
exists(string model |
@@ -26,6 +26,12 @@ private module TranslateModels<
2626
)
2727
}
2828

29+
// Be robust against MaD IDs with multiple textual representations; simply
30+
// concatenate them all
31+
private predicate interpretModelForTest(QlBuiltins::ExtensionId madId, string model) {
32+
model = strictconcat(string mod | interpretModelForTest0(madId, mod) | mod, ", ")
33+
}
34+
2935
private QlBuiltins::ExtensionId getModelId(string model) {
3036
madIds(result.toString()) and
3137
interpretModelForTest(result, model)

0 commit comments

Comments
 (0)