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

Builder for a directory. More...

Public Member Functions

TempDirBuilder cd (String relativePath) throws IOException
 Create a directory at the given path.
TempDirChecker check (String relativePath, Matcher<? super Path > pathMatcher) throws IOException
TempDirChecker checkContentsOf (String relativePath, Matcher<? super String > contentsMatcher) throws IOException
 Check the contents of the file match the matcher.

Static Public Member Functions

static TempDirChecker dirChecker (Path path)

Detailed Description

Builder for a directory.

Useful to create a fake LF project.

Member Function Documentation

◆ cd()

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

Create a directory at the given path.

Return a new temp dir builder for that subdir.

◆ check()

TempDirChecker org.lflang.cli.TestUtils.TempDirChecker.check ( String relativePath,
Matcher<? super Path > pathMatcher ) throws IOException

◆ checkContentsOf()

TempDirChecker org.lflang.cli.TestUtils.TempDirChecker.checkContentsOf ( String relativePath,
Matcher<? super String > contentsMatcher ) throws IOException

Check the contents of the file match the matcher.

The file should be a UTF-8 encoded text file. Return this instance.

◆ dirChecker()

TempDirChecker org.lflang.cli.TestUtils.TempDirChecker.dirChecker ( Path path)
static

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