Skip to content

Commit

Permalink
Address review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hvitved committed Nov 7, 2024
1 parent 95e9d01 commit 26b048a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion shared/dataflow/codeql/dataflow/test/ProvenancePathGraph.qll
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ signature class PathNodeSig {
private signature predicate provenanceSig(string model);

private module TranslateModels<
interpretModelForTestSig/2 interpretModelForTest, provenanceSig/1 provenance>
interpretModelForTestSig/2 interpretModelForTest0, provenanceSig/1 provenance>
{
private predicate madIds(string madId) {
exists(string model |
Expand All @@ -26,6 +26,12 @@ private module TranslateModels<
)
}

// Be robust against MaD IDs with multiple textual representations; simply
// concatenate them all
private predicate interpretModelForTest(QlBuiltins::ExtensionId madId, string model) {
model = strictconcat(string mod | interpretModelForTest0(madId, mod) | mod, ", ")
}

private QlBuiltins::ExtensionId getModelId(string model) {
madIds(result.toString()) and
interpretModelForTest(result, model)
Expand Down

0 comments on commit 26b048a

Please sign in to comment.