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

Method expect_file

std/src/testutils.rs:947–952  ·  view source on GitHub ↗

Adds a file to expect in the drive with a `name` and specific `content`. `name` must be the absolute path to the file that is expected, including the drive name.

(mut self, name: N, content: C)

Source from the content-addressed store, hash-verified

945 ///
946 /// `name` must be the absolute path to the file that is expected, including the drive name.
947 pub fn expect_file<N: Into<String>, C: Into<String>>(mut self, name: N, content: C) -> Self {
948 let name = name.into();
949 assert!(!self.exp_drives.contains_key(&name));
950 self.exp_drives.insert(name, content.into());
951 self
952 }
953
954 /// Adds the `out` sequence of captured outputs to the expected outputs of the execution.
955 pub fn expect_output<V: Into<Vec<CapturedOut>>>(mut self, out: V) -> Self {

Callers 15

test_load_okFunction · 0.45
test_load_errorsFunction · 0.45
test_save_reuse_nameFunction · 0.45
test_copy_okFunction · 0.45
test_copy_errorsFunction · 0.45

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected