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

Method expect_err

std/src/testutils.rs:889–892  ·  view source on GitHub ↗

Expects the invocation to have erroneously terminated with the exact `message`. If not called, defaults to expecting that execution terminated due to EOF. This or `expect_err` can only be called once.

(mut self, message: S)

Source from the content-addressed store, hash-verified

887 /// If not called, defaults to expecting that execution terminated due to EOF. This or
888 /// `expect_err` can only be called once.
889 pub fn expect_err<S: Into<String>>(mut self, message: S) -> Self {
890 self.exp_result = Err(message.into());
891 self
892 }
893
894 /// Adds the `name` array as an array to expect in the final state of the machine. The array
895 /// will be tested to have the same `subtype` and `dimensions`, as well as specific `contents`.

Calls

no outgoing calls

Tested by

no test coverage detected