Information about an indexed Lingua Franca test program.
More...
Inherits Comparable< LFTest >.
|
| class | ExecutionLogger |
| | Inner class for capturing streams during execution of a test, capable of recording output streams up until the moment that a test is interrupted upon timing out. More...
|
| enum | Result |
| | Enumeration of test outcomes. More...
|
Information about an indexed Lingua Franca test program.
- Author
- Marten Lohstroh
◆ LFTest()
| org.lflang.tests.LFTest.LFTest |
( |
Path | srcFile | ) |
|
Create a new test.
- Parameters
-
| srcFile | The path to the file of the test program. |
◆ compareTo()
| int org.lflang.tests.LFTest.compareTo |
( |
LFTest | t | ) |
|
Comparison implementation to allow for tests to be sorted (e.g., when added to a tree set) based on their path (relative to the root of the test directory).
◆ equals()
| boolean org.lflang.tests.LFTest.equals |
( |
Object | o | ) |
|
Return true if the given object is an LFTest instance with a name identical to this test.
- Parameters
-
| o | The object to test for equality with respect to this one. |
- Returns
- True if the given object is equal to this one, false otherwise.
◆ getContext()
◆ getExecutionTimeNanoseconds()
| long org.lflang.tests.LFTest.getExecutionTimeNanoseconds |
( |
| ) |
|
Return the execution time of this test in nanoseconds.
◆ getFileConfig()
| FileConfig org.lflang.tests.LFTest.getFileConfig |
( |
| ) |
|
◆ getSrcPath()
| Path org.lflang.tests.LFTest.getSrcPath |
( |
| ) |
|
◆ handleTestError()
| void org.lflang.tests.LFTest.handleTestError |
( |
TestError | e | ) |
|
◆ hasFailed()
| boolean org.lflang.tests.LFTest.hasFailed |
( |
| ) |
|
Report whether this test has failed.
- Returns
- True if the test has failed, false otherwise.
◆ hashCode()
| int org.lflang.tests.LFTest.hashCode |
( |
| ) |
|
Identify tests uniquely on the basis of their name.
- Returns
- The hash code of the name of this test.
◆ hasPassed()
| boolean org.lflang.tests.LFTest.hasPassed |
( |
| ) |
|
◆ loadContext()
◆ markPassed()
| void org.lflang.tests.LFTest.markPassed |
( |
| ) |
|
◆ recordStdErr()
| Thread org.lflang.tests.LFTest.recordStdErr |
( |
Process | process | ) |
|
Return a thread responsible for recording the error stream of the given process.
A separate thread is used so that the activity can be preempted.
◆ recordStdOut()
| Thread org.lflang.tests.LFTest.recordStdOut |
( |
Process | process | ) |
|
Return a thread responsible for recording the standard output stream of the given process.
A separate thread is used so that the activity can be preempted.
◆ redirectOutputs()
| void org.lflang.tests.LFTest.redirectOutputs |
( |
| ) |
|
Redirect outputs for recording.
◆ reportErrors()
| void org.lflang.tests.LFTest.reportErrors |
( |
| ) |
|
Print a report of all the collected errors.
◆ restoreOutputs()
| void org.lflang.tests.LFTest.restoreOutputs |
( |
| ) |
|
|
static |
◆ setExecutionTimeNanoseconds()
| void org.lflang.tests.LFTest.setExecutionTimeNanoseconds |
( |
long | time | ) |
|
Record the execution time of this test in nanoseconds.
◆ toString()
| String org.lflang.tests.LFTest.toString |
( |
| ) |
|
Return a string representing the name of this test.
- Returns
- The name of this test.
The documentation for this class was generated from the following file:
- /Users/runner/work/lingua-franca/lingua-franca/core/src/testFixtures/java/org/lflang/tests/LFTest.java