Struct endbasic_std::testutils::Tester [−][src]
pub struct Tester { /* fields omitted */ }
Expand description
Builder pattern to prepare an EndBASIC machine for testing purposes.
Implementations
Registers the given builtin command into the machine, which must not yet be registered.
Registers the given builtin function into the machine, which must not yet be registered.
Adds the golden_in
characters as console input.
Returns a mutable reference to the machine inside the tester.
This method should generally not be used, except to run native methods that have side-effects on the machine that we’d like to validate later.
Gets the mock console from the tester.
This method should generally not be used. Its primary utility is to hook externally-instantiated commands into the testing features.
Gets the recorded program from the tester.
This method should generally not be used. Its primary utility is to hook externally-instantiated commands into the testing features.
Gets the storage subsystem from the tester.
This method should generally not be used. Its primary utility is to hook externally-instantiated commands into the testing features.
Gets the mock service client from the tester.
This method should generally not be used. Its primary utility is to hook externally-instantiated commands into the testing features.
Sets the initial contents of the recorded program to text
. Can only be called once and
text
must not be empty.
Creates or overwrites a file in the storage medium.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Tester
impl !UnwindSafe for Tester