Files
codeql/python/ql/test/library-tests/ControlFlow/evaluation-order/AnnotationHasCfgNode.ql
2026-05-05 15:21:42 +00:00

17 lines
377 B
Plaintext

/**
* Checks that every timer annotation has a corresponding CFG node.
*/
import python
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()