ToBeLiteral

inner class ToBeLiteral

Represents a section of the sourcecode which is a .toBe(LITERAL) call. It might also be .toBe_TODO() or toBe LITERAL (infix notation).

Functions

Link copied to clipboard
fun <T : Any> parseLiteral(literalFormat: LiteralFormat<T>): T

Parses the current value of the value within .toBe(). This method should not be called on toBe_TODO().

Link copied to clipboard

Modifies the parent SourceFile to set the value within the toBe call, and returns the net change in newline count.