Skip to content

Commit 9055769

Browse files
yoffCopilot
andcommitted
Python: format shared CFG regression tests
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent dca1fab commit 9055769

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

python/ql/test/library-tests/ControlFlow/shared-cfg-exceptions/ExceptionReachabilityTest.ql

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ module ExceptionReachabilityTest implements TestSig {
1111
string getARelevantTag() { result = "exception-handler" }
1212

1313
predicate hasActualResult(Location location, string element, string tag, string value) {
14-
exists(Expr source, ExceptStmt handler, Cfg::ControlFlowNode sourceCfg,
15-
Cfg::ControlFlowNode handlerEntry |
14+
exists(
15+
Expr source, ExceptStmt handler, Cfg::ControlFlowNode sourceCfg,
16+
Cfg::ControlFlowNode handlerEntry
17+
|
1618
sourceCfg.getNode() = source and
1719
handlerEntry = sourceCfg.getAnExceptionalSuccessor() and
1820
CfgImpl::astNodeToPyNode(handlerEntry.getAstNode()) = handler and

python/ql/test/library-tests/dataflow-new-ssa/SsaTest.ql

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@ module SsaTest implements TestSig {
5656
value = phi.getSourceVariable().(SsaImpl::SsaSourceVariable).getVariable().getId()
5757
)
5858
or
59-
exists(SsaImpl::PhiFunction phi, SsaImpl::EssaVariable variable, CfgImpl::BasicBlock bb,
60-
Cfg::ControlFlowNode exit |
59+
exists(
60+
SsaImpl::PhiFunction phi, SsaImpl::EssaVariable variable, CfgImpl::BasicBlock bb,
61+
Cfg::ControlFlowNode exit
62+
|
6163
variable = phi and
6264
phi.definesAt(_, bb, _) and
6365
variable.getAUse() = exit and

0 commit comments

Comments
 (0)