AssertionFormatterParameterObject

A parameter object used for interactions between AssertionFormatterController and AssertionFormatter.

Parameters

sb

The StringBuilder to which the formatted Assertion will be appended.

prefix

The current prefix per assertion.

indentLevel

The current indentation level.

assertionFilter

Can be used to filter out Assertions which should not be formatted.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Can be used to filter out Assertions which should not be formatted.

Link copied to clipboard

The current prefix per assertion.

Link copied to clipboard

The StringBuilder to which the formatted Assertion will be appended.

Functions

Link copied to clipboard

Appends a new line (system separator), spaces equal to the number of indentLevel and the prefix to sb.

Link copied to clipboard

Appends a new line (system separator), spaces equal to the number of indentLevel and the prefix to sb.

Link copied to clipboard

Creates an AssertionFormatterParameterObject for kind of a child of the current parameter object using the given newPrefix (the child will typically be used to indent Assertions one level more).

Creates an AssertionFormatterParameterObject for kind of a child of the current parameter object using the given newPrefix and an additionalIndent (the child will typically be used to indent Assertions one level more).

Link copied to clipboard

Clones the current AssertionFormatterParameterObject and increases numberOfDoNotFilterGroups by one because it is assumed that the resulting parameter object is used to format an AssertionGroup of type DoNotFilterAssertionGroupType.

Link copied to clipboard

Clones the current AssertionFormatterParameterObject and increases numberOfDoNotFilterGroups by one because it is assumed that the resulting parameter object is used to format an AssertionGroup of type DoNotFilterAssertionGroupType.

Link copied to clipboard
Link copied to clipboard
fun indent(numberOfSpaces: Int)

Appends spaces equal to numberOfSpaces to sb.

Link copied to clipboard

Indicates that the formatting process is currently not formatting the Assertions (or any nested assertion) of an AssertionGroup of type DoNotFilterAssertionGroupType.

Link copied to clipboard

Indicates that the formatting process is currently not formatting the Assertions (or any nested assertion) of an AssertionGroup of type ExplanatoryAssertionGroupType.