SnapshotSystem

interface SnapshotSystem

NOT FOR ENDUSERS. Implemented by Selfie to integrate with various test frameworks.

Properties

Link copied to clipboard
abstract val fs: FS
Link copied to clipboard
Link copied to clipboard
abstract val mode: Mode

Functions

Link copied to clipboard

Returns the DiskStorage for the test associated with this thread, else error.

Link copied to clipboard

Returns true if the sourcecode for the given call has a writable annotation.

Link copied to clipboard
abstract fun writeInline(literalValue: LiteralValue<*>, call: CallStack)

Indicates that the following value should be written into test sourcecode.

Link copied to clipboard
abstract fun writeToBeFile(path: TypedPath, data: ByteArray, call: CallStack)

Writes the given bytes to the given file, checking for duplicate writes.