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

Inherits org.lflang.cli.CliToolTestFixture.

Public Member Functions

ExecutionResult run (Path wd, String... args)
 Run the tool with the given arguments, in the given working directory.
ExecutionResult run (String... args)
 Run the tool with the given arguments, in the system working directory.

Protected Member Functions

void runCliProgram (Io io, String[] args)
 Override to call the relevant main.

Package Functions

record ExecutionResult (ByteArrayOutputStream out, ByteArrayOutputStream err, int exitCode)
 The result of an execution of a CLI program like LFC.

Member Function Documentation

◆ ExecutionResult()

record org.lflang.cli.CliToolTestFixture.ExecutionResult ( ByteArrayOutputStream out,
ByteArrayOutputStream err,
int exitCode )
packageinherited

The result of an execution of a CLI program like LFC.

Parameters
outOutput stream
errError stream
exitCodeExit code of the process

Use this method to wrap assertions.

◆ run() [1/2]

ExecutionResult org.lflang.cli.CliToolTestFixture.run ( Path wd,
String... args )
inherited

Run the tool with the given arguments, in the given working directory.

Parameters
wdworking directory
argsArguments
Returns
The execution result

◆ run() [2/2]

ExecutionResult org.lflang.cli.CliToolTestFixture.run ( String... args)
inherited

Run the tool with the given arguments, in the system working directory.

Parameters
argsArguments
Returns
The execution result

◆ runCliProgram()

void org.lflang.cli.LfcCliTest.LfcOneShotTestFixture.runCliProgram ( Io io,
String[] args )
protected

Override to call the relevant main.

Reimplemented from org.lflang.cli.CliToolTestFixture.


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