Skip to content

Commit

Permalink
fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
khemrajrathore committed Dec 24, 2024
1 parent a418b6f commit b300d46
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class DataFlowTests extends DataFlowCodeToCpgSuite {

"find flows to `free`" in {
val source = cpg.identifier
val sink = cpg.call.name("free")
val sink = cpg.call.name("free").argument
sink.reachableByFlows(source).l.map(flowToResultPairs).distinct.size shouldBe 6
}

Expand Down Expand Up @@ -1312,7 +1312,7 @@ class DataFlowTests extends DataFlowCodeToCpgSuite {

"find flows to `free`" in {
val source = cpg.identifier
val sink = cpg.call.name("free")
val sink = cpg.call.name("free").argument
sink.reachableByFlows(source).l.map(flowToResultPairs).distinct.toSet.size shouldBe 6
}

Expand Down

0 comments on commit b300d46

Please sign in to comment.