Package-level declarations

Types

Link copied to clipboard
class MockPermissionHolder(val permissions: Set<Permission>, val rootFileSystem: FileSystem? = null) : PermissionHolder

A minimal PermissionHolder for tests with configurable permissions and root file system.

Functions

Link copied to clipboard
fun assertNodeEquals(expected: Node, actual: Node): RecursiveComparisonAssert<*>

Asserts that the contents of two nodes are equal.

fun assertNodeEquals(expected: InlineContent, actual: InlineContent): RecursiveComparisonAssert<*>

Asserts that the contents of two inline content nodes are equal.

Link copied to clipboard
fun MutableContext.attachMockPipeline(options: PipelineOptions = PipelineOptions()): Pipeline

Attaches a mock pipeline to a context for tests only, which does not support rendering.

Link copied to clipboard
inline fun <T : Node> nodesIterator(lexer: Lexer, parser: TokenVisitor<Node>, assertType: Boolean = true): Iterator<T>

Tokenizes and parses some input.

Link copied to clipboard

Reads the text content of a test resource.