Adds the `name`/`value` pair as a variable to expect in the final state of the machine.
(mut self, name: S, value: V)
| 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] |
no test coverage detected