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

Method write_file

std/src/testutils.rs:731–734  ·  view source on GitHub ↗

Creates or overwrites a file in the storage medium.

(self, name: &str, content: &str)

Source from the content-addressed store, hash-verified

729
730 /// Creates or overwrites a file in the storage medium.
731 pub fn write_file(self, name: &str, content: &str) -> Self {
732 block_on(self.storage.borrow_mut().put(name, content.as_bytes())).unwrap();
733 self
734 }
735
736 /// Runs `script` in the configured machine and returns a `Checker` object to validate
737 /// expectations about the execution.

Callers 15

test_load_okFunction · 0.80
test_load_errorsFunction · 0.80
test_copy_okFunction · 0.80
test_copy_errorsFunction · 0.80
test_dir_other_by_cwdFunction · 0.80

Calls 2

as_bytesMethod · 0.80
putMethod · 0.45

Tested by

no test coverage detected