Files
codeql/python/ql/test/3/library-tests/PointsTo/regressions/subprocess-assert/ClassValue.ql
2020-03-30 11:59:10 +02:00

12 lines
333 B
Plaintext

import python
// as used in semmle.python.filters.Tests
from ClassValue c, string base
where
c.getScope().getLocation().getFile().getShortName().matches("mwe%.py") and
c.getName() = "MyTest" and
if exists(c.getABaseType())
then base = c.getABaseType().toString()
else base = "<MISSING BASE TYPE>"
select c, base