mirror of
https://github.com/github/codeql.git
synced 2025-12-20 02:44:30 +01:00
Will need subsequent PRs fixing up test failures (due to deprecated methods moving around), but other than that everything should be straight-forward.
12 lines
323 B
Plaintext
12 lines
323 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
|