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

Method add_callable

std/src/testutils.rs:645–648  ·  view source on GitHub ↗

Registers the given builtin command into the machine, which must not yet be registered.

(mut self, callable: Rc<dyn Callable>)

Source from the content-addressed store, hash-verified

643
644 /// Registers the given builtin command into the machine, which must not yet be registered.
645 pub fn add_callable(mut self, callable: Rc<dyn Callable>) -> Self {
646 self.callables.push(callable);
647 self
648 }
649
650 /// Adds the `golden_in` characters as console input.
651 pub fn add_input_chars(self, golden_in: &str) -> Self {

Callers 1

build_machineMethod · 0.45

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected