MCPcopy Create free account
hub / github.com/assert-rs/assert_fs / main

Function main

examples/failure.rs:5–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3use assert_fs::prelude::*;
4
5fn main() {
6 let temp = assert_fs::TempDir::new().unwrap();
7 let input_file = temp.child("foo.txt");
8
9 input_file.write_str("Hello\nWorld!").unwrap();
10
11 input_file.assert("Goodbye\nWorld!");
12
13 temp.close().unwrap();
14}

Callers

nothing calls this directly

Calls 4

childMethod · 0.80
write_strMethod · 0.80
assertMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected