Module endbasic_std::testutils
source · 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.
- 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
expron a scripting interpreter and ensures that evaluation fails withexp_errorduring compilation. - Executes
expron a scripting interpreter and ensures that evaluation fails withexp_error. - Executes
expron a scripting interpreter and ensures that the result isexp_value. - Executes
expron a scripting interpreter and ensures that the result isexp_value. - Executes
stmton a defaultTesterinstance and checks that it fails withexp_errorduring compilation. - Executes
stmton a defaultTesterinstance and checks that it fails withexp_error. - Flattens the captured output into a single string resembling what would be shown in the console for ease of testing.