mirror of
https://github.com/github/codeql.git
synced 2025-12-21 03:06:31 +01:00
Python: test nice locations
there are errors both on lines 2 and 3 due to locations being computed wrongly.
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
from nova.api.openstack.placement import microversion
|
||||
from nova.api.openstack.placement.objects import resource_provider as rp_obj
|
||||
from nova.api.openstack.placement.policies import allocation_candidate as \
|
||||
policies
|
||||
@@ -0,0 +1,8 @@
|
||||
| import_statements.py | 1 | 6 | 1 | 33 |
|
||||
| import_statements.py | 1 | 42 | 1 | 53 |
|
||||
| import_statements.py | 2 | 6 | 2 | 41 |
|
||||
| import_statements.py | 2 | 60 | 2 | 76 |
|
||||
| import_statements.py | 2 | 71 | 2 | 76 |
|
||||
| import_statements.py | 3 | 6 | 3 | 42 |
|
||||
| import_statements.py | 4 | 5 | 4 | 12 |
|
||||
| import_statements.py | 4 | -7 | 4 | 12 |
|
||||
@@ -0,0 +1,6 @@
|
||||
import python
|
||||
import analysis.DefinitionTracking
|
||||
|
||||
from NiceLocationExpr expr, string f, int bl, int bc, int el, int ec
|
||||
where expr.hasLocationInfo(f, bl, bc, el, ec)
|
||||
select f, bl, bc, el, ec
|
||||
Reference in New Issue
Block a user