Skip to content

Commit cc9a938

Browse files
committed
InlineExpectationTest: clarify the nedd for an
empty `.expected` file
1 parent 23d994a commit cc9a938

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)