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

Method expect_var

std/src/testutils.rs:987–992  ·  view source on GitHub ↗

Adds the `name`/`value` pair as a variable to expect in the final state of the machine.

(mut self, name: S, value: V)

Source from the content-addressed store, hash-verified

985
986 /// Adds the `name`/`value` pair as a variable to expect in the final state of the machine.
987 pub fn expect_var<S: AsRef<str>, V: Into<ConstantDatum>>(mut self, name: S, value: V) -> Self {
988 let key = SymbolKey::from(name);
989 assert!(!self.exp_vars.contains_key(&key));
990 self.exp_vars.insert(key, value.into());
991 self
992 }
993
994 /// Takes the captured output for separate analysis.
995 #[must_use]

Callers 15

test_lbound_okFunction · 0.80
test_ubound_okFunction · 0.80
test_bound_integrationFunction · 0.80
test_help_eval_argFunction · 0.80
test_help_errorsFunction · 0.80
check_expr_okFunction · 0.80
check_expr_ok_with_varsFunction · 0.80
test_read_simpleFunction · 0.80
test_read_multipleFunction · 0.80

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected