Skip to content

Commit 84554af

Browse files
authored
Merge pull request github#5356 from yoff/tests-amend-qldoc
InlineExpectationTest: clarify the need for an empty `.expected` file
2 parents 23d994a + cc9a938 commit 84554af

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

cpp/ql/test/TestUtilities/InlineExpectationsTest.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/**
22
* Provides a library for writing QL tests whose success or failure is based on expected results
3-
* embedded in the test source code as comments, rather than a `.expected` file.
3+
* embedded in the test source code as comments, rather than the contents of an `.expected` file
4+
* (in that the `.expected` file should always be empty).
45
*
56
* To add this framework to a new language:
67
* - Add a file `InlineExpectationsTestPrivate.qll` that defines a `LineComment` class. This class

java/ql/test/TestUtilities/InlineExpectationsTest.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/**
22
* Provides a library for writing QL tests whose success or failure is based on expected results
3-
* embedded in the test source code as comments, rather than a `.expected` file.
3+
* embedded in the test source code as comments, rather than the contents of an `.expected` file
4+
* (in that the `.expected` file should always be empty).
45
*
56
* To add this framework to a new language:
67
* - Add a file `InlineExpectationsTestPrivate.qll` that defines a `LineComment` class. This class

python/ql/test/TestUtilities/InlineExpectationsTest.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/**
22
* Provides a library for writing QL tests whose success or failure is based on expected results
3-
* embedded in the test source code as comments, rather than a `.expected` file.
3+
* embedded in the test source code as comments, rather than the contents of an `.expected` file
4+
* (in that the `.expected` file should always be empty).
45
*
56
* To add this framework to a new language:
67
* - Add a file `InlineExpectationsTestPrivate.qll` that defines a `LineComment` class. This class

0 commit comments

Comments
 (0)