K3TestRunner

class K3TestRunner(val fs: FileSystem, basePath: Path) : K3ImportResolver(source)

Constructors

Link copied to clipboard
constructor(fs: FileSystem, basePath: Path)

Types

Link copied to clipboard
data class ImportFileRef(val path: Path) : SourceFileRef
Link copied to clipboard
data class KeyboardFileRef(val path: Path) : SourceFileRef

Properties

Link copied to clipboard
val fs: FileSystem

Functions

Link copied to clipboard
Link copied to clipboard
suspend fun loadKeyboard(name: String): K3Model
Link copied to clipboard
open suspend override fun resolveImport(path: String, fileGraph: List<SourceFileRef>): TextSourceFile

Resolves a local import from given path and returns a text source file. This function may throw in error cases, in which case a compilation error report will be generated. This will not necessarily abort compilation immediately, but it is guaranteed that the final compilation result is failure.

Link copied to clipboard
suspend fun runTest(test: K3TestSpec.Test, model: K3Model)