Files
codeql/python/ql/test/library-tests/ControlFlow/evaluation-order/AnnotationHasCfgNode.ql
Taus edfbaa5ceb Python: Add some CFG-validation queries
These use the annotated, self-verifying test files to check various
consistency requirements.

Some of these may be expressing the same thing in different ways, but
it's fairly cheap to keep them around, so I have not attempted to
produce a minimal set of queries for this.
2026-04-28 15:38:04 +00:00

16 lines
363 B
Plaintext

/**
* Checks that every timer annotation has a corresponding CFG node.
*/
import TimerUtils
import OldCfgImpl
private module Utils = EvalOrderCfgUtils<OldCfg>;
private import Utils::CfgTests
from TimerAnnotation ann
where annotationWithoutCfgNode(ann)
select ann, "Annotation in $@ has no CFG node", ann.getTestFunction(),
ann.getTestFunction().getName()