Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 415e0c4

Browse files
committed
Python: add suggestion for test cases
1 parent 5973fe8 commit 415e0c4

1 file changed

Lines changed: 42 additions & 1 deletion

File tree

  • python/ql/test/experimental/dataflow/coverage

python/ql/test/experimental/dataflow/coverage/test.py

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,45 @@
1212
def test_tuple_with_local_flow():
1313
x = (3, SOURCE)
1414
y = x[1]
15-
SINK(y)
15+
SINK(y)
16+
17+
18+
# List taken from https://docs.python.org/3/reference/expressions.html
19+
# 6. Expressions
20+
# 6.1. Arithmetic conversions
21+
# 6.2. Atoms
22+
# 6.2.1. Identifiers (Names)
23+
# 6.2.2. Literals
24+
# 6.2.3. Parenthesized forms
25+
# 6.2.4. Displays for lists, sets and dictionaries
26+
# 6.2.5. List displays
27+
# 6.2.6. Set displays
28+
# 6.2.7. Dictionary displays
29+
# 6.2.8. Generator expressions
30+
# 6.2.9. Yield expressions
31+
# 6.2.9.1. Generator-iterator methods
32+
# 6.2.9.2. Examples
33+
# 6.2.9.3. Asynchronous generator functions
34+
# 6.2.9.4. Asynchronous generator-iterator methods
35+
# 6.3. Primaries
36+
# 6.3.1. Attribute references
37+
# 6.3.2. Subscriptions
38+
# 6.3.3. Slicings
39+
# 6.3.4. Calls
40+
# 6.4. Await expression
41+
# 6.5. The power operator
42+
# 6.6. Unary arithmetic and bitwise operations
43+
# 6.7. Binary arithmetic operations
44+
# 6.8. Shifting operations
45+
# 6.9. Binary bitwise operations
46+
# 6.10. Comparisons
47+
# 6.10.1. Value comparisons
48+
# 6.10.2. Membership test operations
49+
# 6.10.3. Identity comparisons
50+
# 6.11. Boolean operations
51+
# 6.12. Assignment expressions
52+
# 6.13. Conditional expressions
53+
# 6.14. Lambdas
54+
# 6.15. Expression lists
55+
# 6.16. Evaluation order
56+
# 6.17. Operator precedence

0 commit comments

Comments
 (0)