mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +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:
0
python/ql/test/extractor-tests/paths/module.py
Normal file
0
python/ql/test/extractor-tests/paths/module.py
Normal file
6
python/ql/test/extractor-tests/paths/modules.expected
Normal file
6
python/ql/test/extractor-tests/paths/modules.expected
Normal file
@@ -0,0 +1,6 @@
|
||||
| Module module | module | module.py |
|
||||
| Module package.__init__ | package.__init__ | package/__init__.py |
|
||||
| Module package.x | package.x | package/x.py |
|
||||
| Module package.y | package.y | package/y.py |
|
||||
| Module test | test | test.py |
|
||||
| Package package | package | package |
|
||||
4
python/ql/test/extractor-tests/paths/modules.ql
Normal file
4
python/ql/test/extractor-tests/paths/modules.ql
Normal file
@@ -0,0 +1,4 @@
|
||||
import python
|
||||
|
||||
from Module m
|
||||
select m.toString(), m.getName(), m.getPath().toString()
|
||||
1
python/ql/test/extractor-tests/paths/options
Normal file
1
python/ql/test/extractor-tests/paths/options
Normal file
@@ -0,0 +1 @@
|
||||
semmle-extractor-options: -R . -p non-such --filter exclude:**/src_archive/**
|
||||
0
python/ql/test/extractor-tests/paths/package/x.py
Normal file
0
python/ql/test/extractor-tests/paths/package/x.py
Normal file
0
python/ql/test/extractor-tests/paths/package/y.py
Normal file
0
python/ql/test/extractor-tests/paths/package/y.py
Normal file
3
python/ql/test/extractor-tests/paths/packages.expected
Normal file
3
python/ql/test/extractor-tests/paths/packages.expected
Normal file
@@ -0,0 +1,3 @@
|
||||
| Module package.__init__ | Package package |
|
||||
| Module package.x | Package package |
|
||||
| Module package.y | Package package |
|
||||
4
python/ql/test/extractor-tests/paths/packages.ql
Normal file
4
python/ql/test/extractor-tests/paths/packages.ql
Normal file
@@ -0,0 +1,4 @@
|
||||
import python
|
||||
|
||||
from Module m
|
||||
select m.toString(), m.getPackage().toString()
|
||||
0
python/ql/test/extractor-tests/paths/test.py
Normal file
0
python/ql/test/extractor-tests/paths/test.py
Normal file
Reference in New Issue
Block a user