mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
Python: Add copy of extractor tests
These get to live next to the existing library and query tests, and are run as part of both the Python 2 and Python 3 language tests.
This commit is contained in:
2
python/ql/test/extractor-tests/basicblocks/test.expected
Normal file
2
python/ql/test/extractor-tests/basicblocks/test.expected
Normal file
@@ -0,0 +1,2 @@
|
||||
| Function g | 1 |
|
||||
| Module test | 1 |
|
||||
84
python/ql/test/extractor-tests/basicblocks/test.py
Normal file
84
python/ql/test/extractor-tests/basicblocks/test.py
Normal file
@@ -0,0 +1,84 @@
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
|
||||
def g():
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
f()
|
||||
|
||||
|
||||
4
python/ql/test/extractor-tests/basicblocks/test.ql
Normal file
4
python/ql/test/extractor-tests/basicblocks/test.ql
Normal file
@@ -0,0 +1,4 @@
|
||||
import python
|
||||
|
||||
from Scope s
|
||||
select s.toString(), count(BasicBlock bb | bb.getScope() = s)
|
||||
Reference in New Issue
Block a user