MCPcopy Index your code
hub / github.com/endbasic/endbasic / run

Method run

std/src/testutils.rs:738–742  ·  view source on GitHub ↗

Runs `script` in the configured machine and returns a `Checker` object to validate expectations about the execution.

(&mut self, script: S)

Source from the content-addressed store, hash-verified

736 /// Runs `script` in the configured machine and returns a `Checker` object to validate
737 /// expectations about the execution.
738 pub fn run<S: Into<String>>(&mut self, script: S) -> Checker<'_> {
739 let machine = self.build_machine();
740 let tester = TesterContinuation { tester: self, machine };
741 tester.run(script)
742 }
743
744 /// Creates a continuation from the current tester state without running any code.
745 pub fn continue_from_here(&self) -> TesterContinuation<'_> {

Callers 15

test_disasm_nothingFunction · 0.45
test_disasm_okFunction · 0.45
test_disasm_pagingFunction · 0.45
test_disasm_code_errorsFunction · 0.45
test_edit_okFunction · 0.45
test_list_okFunction · 0.45
test_list_pagingFunction · 0.45
test_load_okFunction · 0.45

Calls 4

build_machineMethod · 0.80
as_bytesMethod · 0.80
compileMethod · 0.45
execMethod · 0.45

Tested by

no test coverage detected