Skip to content

Commit dccbcc1

Browse files
committed
Python: Sync InlineExpectationsTest.qll between Python and C++
Also changes `valuesasas` to `values` in the test example.
1 parent e7322d1 commit dccbcc1

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

config/identical-files.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,10 @@
325325
"csharp/ql/src/experimental/ir/implementation/raw/gvn/internal/ValueNumberingImports.qll",
326326
"csharp/ql/src/experimental/ir/implementation/unaliased_ssa/gvn/internal/ValueNumberingImports.qll"
327327
],
328+
"Inline Test Expectations": [
329+
"cpp/ql/test/TestUtilities/InlineExpectationsTest.qll",
330+
"python/ql/test/TestUtilities/InlineExpectationsTest.qll"
331+
],
328332
"XML": [
329333
"cpp/ql/src/semmle/code/cpp/XML.qll",
330334
"csharp/ql/src/semmle/code/csharp/XML.qll",

cpp/ql/test/TestUtilities/InlineExpectationsTest.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
* }
2929
*
3030
* override predicate hasActualResult(
31-
* Location location, string element, string tag, string valuesasas
31+
* Location location, string element, string tag, string values
3232
* ) {
3333
* exists(Expr e |
3434
* tag = "const" and // The tag for this test.
35-
* valuesasas = e.getValue() and // The expected value. Will only hold for constant expressions.
35+
* values = e.getValue() and // The expected value. Will only hold for constant expressions.
3636
* location = e.getLocation() and // The location of the result to be reported.
3737
* element = e.toString() // The display text for the result.
3838
* )

python/ql/test/TestUtilities/InlineExpectationsTest.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
* }
2929
*
3030
* override predicate hasActualResult(
31-
* Location location, string element, string tag, string valuesasas
31+
* Location location, string element, string tag, string values
3232
* ) {
3333
* exists(Expr e |
3434
* tag = "const" and // The tag for this test.
35-
* valuesasas = e.getValue() and // The expected value. Will only hold for constant expressions.
35+
* values = e.getValue() and // The expected value. Will only hold for constant expressions.
3636
* location = e.getLocation() and // The location of the result to be reported.
3737
* element = e.toString() // The display text for the result.
3838
* )

0 commit comments

Comments
 (0)