Module endbasic_std::testutils[][src]

Expand description

Test utilities for consumers of the EndBASIC interpreter.

Structs

Captures expectations about the execution of a command and validates them.

A console that supplies golden input and captures all output.

Service client implementation that allows specifying expectations on requests and yields the responses previously recorded into it.

A stored program that exposes golden contents and accepts new content from the console when edits are requested.

Builder pattern to prepare an EndBASIC machine for testing purposes.

Enums

A captured command or messages sent to the mock console.

Functions

Executes expr on a scripting interpreter and ensures that evaluation fails with exp_error.

Executes expr on a scripting interpreter and ensures that the result is exp_value.

Executes stmt on a default Tester instance and checks that it fails with exp_error.