AssertsPlatformSpecific

utest.asserts.AssertsPlatformSpecific

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Asserts

Members list

Value members

Concrete methods

def assertGoldenFile(actualValue: String, goldenFilePath: Path)(implicit reporter: Reporter): Unit

Asserts that the String actualValue is equivalent to the contents of the file on disk at goldenFilePath. If UTEST_UPDATE_GOLDEN_TESTS=1 is set during the test run, the golden file is updated to the latest contents of actualValue

Asserts that the String actualValue is equivalent to the contents of the file on disk at goldenFilePath. If UTEST_UPDATE_GOLDEN_TESTS=1 is set during the test run, the golden file is updated to the latest contents of actualValue

Attributes

def assertGoldenLiteral(actualValue: Any, goldenLiteral: Span[Any])(implicit reporter: Reporter): Unit

Asserts that the String actualValue is equivalent to the contents of the goldenLiteral. If UTEST_UPDATE_GOLDEN_TESTS=1 is set during the test run, the source code of goldenLiteral is updated to the latest contents of actualValue pretty-printed using PPrint.

Asserts that the String actualValue is equivalent to the contents of the goldenLiteral. If UTEST_UPDATE_GOLDEN_TESTS=1 is set during the test run, the source code of goldenLiteral is updated to the latest contents of actualValue pretty-printed using PPrint.

Attributes