mirror of
https://github.com/github/codeql.git
synced 2025-12-19 18:33:16 +01:00
We were mixing between things, so this is just to keep things consistent. Even though it's not strictly needed for all queries, it does look nice I think
21 lines
645 B
Plaintext
21 lines
645 B
Plaintext
import python
|
|
import semmle.python.dataflow.new.DataFlow
|
|
import TestUtilities.InlineExpectationsTest
|
|
import semmle.python.security.dataflow.ExceptionInfo
|
|
|
|
class ExceptionInfoTest extends InlineExpectationsTest {
|
|
ExceptionInfoTest() { this = "ExceptionInfoTest" }
|
|
|
|
override string getARelevantTag() { result = "exceptionInfo" }
|
|
|
|
override predicate hasActualResult(Location location, string element, string tag, string value) {
|
|
exists(location.getFile().getRelativePath()) and
|
|
exists(ExceptionInfo e |
|
|
location = e.getLocation() and
|
|
element = e.toString() and
|
|
value = "" and
|
|
tag = "exceptionInfo"
|
|
)
|
|
}
|
|
}
|