mirror of
https://github.com/github/codeql.git
synced 2026-04-03 06:08:17 +02:00
10 lines
328 B
Plaintext
10 lines
328 B
Plaintext
import java
|
|
import semmle.code.java.controlflow.Guards
|
|
import utils.test.BasicBlock
|
|
|
|
from ConditionBlock cb, boolean testIsTrue, BasicBlock controlled
|
|
where
|
|
cb.controls(controlled, testIsTrue) and
|
|
cb.getEnclosingCallable().getDeclaringType().hasName("Test")
|
|
select cb.getCondition(), testIsTrue, getFirstAstNode(controlled)
|