mirror of
https://github.com/github/codeql.git
synced 2026-05-14 11:19:27 +02:00
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.
15 lines
345 B
Plaintext
15 lines
345 B
Plaintext
/**
|
|
* Checks that every timer annotation has a corresponding CFG node.
|
|
*/
|
|
|
|
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()
|