doc / ch.tutteli.atrium.reporting / Reporter / format

format

abstract fun format(assertion: Assertion, sb: StringBuilder): Unit (source)

Reports about the given assertion, using the given sb where the actual implementation will decide whether the given assertion is noteworthy to be reported.

For instance, CoreFactory.newOnlyFailureReporter will only report failing Assertions.

Parameters

sb - The StringBuilder which can be used for reporting.

assertion - The assertion which should be considered for reporting.