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

Builder for a directory. More...

Public Member Functions

TempDirBuilder cd (String relativePath) throws IOException
 Create a directory at the given path.
TempDirBuilder file (String relativePath, String contents) throws IOException
 Create a file in the given subpath.
TempDirBuilder mkdirs (String relativePath) throws IOException
 Create a directory at the given path.

Static Public Member Functions

static TempDirBuilder dirBuilder (Path path)

Detailed Description

Builder for a directory.

Useful to create a fake LF project.

Member Function Documentation

◆ cd()

TempDirBuilder org.lflang.cli.TestUtils.TempDirBuilder.cd ( String relativePath) throws IOException

Create a directory at the given path.

Return a new temp dir builder for that subdir.

◆ dirBuilder()

TempDirBuilder org.lflang.cli.TestUtils.TempDirBuilder.dirBuilder ( Path path)
static

◆ file()

TempDirBuilder org.lflang.cli.TestUtils.TempDirBuilder.file ( String relativePath,
String contents ) throws IOException

Create a file in the given subpath.

Return this instance.

◆ mkdirs()

TempDirBuilder org.lflang.cli.TestUtils.TempDirBuilder.mkdirs ( String relativePath) throws IOException

Create a directory at the given path.

Return this instance.


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