lingua-franca 0.10.1
Lingua Franca code generator
Loading...
Searching...
No Matches
org.lflang.cli.LfcCliTest Class Reference

Classes

class  LfcOneShotTestFixture
class  LfcTestFixture

Public Member Functions

void testGeneratorArgs (@TempDir Path tempDir) throws IOException
void testGeneratorArgsJsonFile (@TempDir Path tempDir) throws IOException
void testGeneratorArgsJsonString (@TempDir Path tempDir) throws IOException
void testGenInSrcDir (@TempDir Path tempDir) throws IOException
void testHelpArg ()
void testInvalidArgs (@TempDir Path tempDir) throws IOException
void testMutuallyExclusiveCliArgs ()
void testVersion ()
void testWrongCliArg ()
void verifyGeneratorArgs (Path tempDir, String[] args)
void verifyJsonGeneratorArgs (Path tempDir, String[] args)

Package Attributes

LfcTestFixture lfcTester = new LfcTestFixture()

Static Package Attributes

static final String JSON_STRING
static final String LF_PYTHON_FILE

Detailed Description

Author
Clément Fournier
Atharva Patil

Member Function Documentation

◆ testGeneratorArgs()

void org.lflang.cli.LfcCliTest.testGeneratorArgs ( @TempDir Path tempDir) throws IOException

◆ testGeneratorArgsJsonFile()

void org.lflang.cli.LfcCliTest.testGeneratorArgsJsonFile ( @TempDir Path tempDir) throws IOException

◆ testGeneratorArgsJsonString()

void org.lflang.cli.LfcCliTest.testGeneratorArgsJsonString ( @TempDir Path tempDir) throws IOException

◆ testGenInSrcDir()

void org.lflang.cli.LfcCliTest.testGenInSrcDir ( @TempDir Path tempDir) throws IOException

◆ testHelpArg()

void org.lflang.cli.LfcCliTest.testHelpArg ( )

◆ testInvalidArgs()

void org.lflang.cli.LfcCliTest.testInvalidArgs ( @TempDir Path tempDir) throws IOException

◆ testMutuallyExclusiveCliArgs()

void org.lflang.cli.LfcCliTest.testMutuallyExclusiveCliArgs ( )

◆ testVersion()

void org.lflang.cli.LfcCliTest.testVersion ( )

◆ testWrongCliArg()

void org.lflang.cli.LfcCliTest.testWrongCliArg ( )

◆ verifyGeneratorArgs()

void org.lflang.cli.LfcCliTest.verifyGeneratorArgs ( Path tempDir,
String[] args )

◆ verifyJsonGeneratorArgs()

void org.lflang.cli.LfcCliTest.verifyJsonGeneratorArgs ( Path tempDir,
String[] args )

Member Data Documentation

◆ JSON_STRING

final String org.lflang.cli.LfcCliTest.JSON_STRING
staticpackage
Initial value:
=
"""
{
"src": "src/File.lf",
"out": "src",
"properties": {
"build-type": "Release",
"clean": true,
"compiler": "gcc",
"external-runtime-path": "src",
"federated": true,
"logging": "info",
"lint": true,
"no-compile": true,
"print-statistics": true,
"quiet": true,
"rti": "path/to/rti",
"runtime-version": "rs",
"scheduler": "GEDF_NP",
"single-threaded": true
}
}
"""

◆ LF_PYTHON_FILE

final String org.lflang.cli.LfcCliTest.LF_PYTHON_FILE
staticpackage
Initial value:
=
"""
target Python
main reactor {
reaction(startup) {==}
}
"""

◆ lfcTester

LfcTestFixture org.lflang.cli.LfcCliTest.lfcTester = new LfcTestFixture()
package

The documentation for this class was generated from the following file:
  • /Users/runner/work/lingua-franca/lingua-franca/cli/lfc/src/test/java/org/lflang/cli/LfcCliTest.java