Files
codeql/python/ql/test/library-tests/ApiGraphs/py3/verifyApiGraphs.ql

12 lines
396 B
Plaintext

// Note: This is not using standard inline-expectation tests, so will not alert if you
// have not manually added an annotation to a line!
import utils.test.VerifyApiGraphs
class CustomEntryPoint extends API::EntryPoint {
CustomEntryPoint() { this = "CustomEntryPoint" }
override DataFlow::LocalSourceNode getASource() {
result.asExpr().(StringLiteral).getText() = "magic_string"
}
}