MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / fixture

Function fixture

atomic-repository/src/worktree_presence.rs:148–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

146 use super::*;
147
148 fn fixture() -> tempfile::TempDir {
149 let dir = tempfile::tempdir().unwrap();
150 let root = dir.path();
151 fs::create_dir_all(root.join("dir/sub")).unwrap();
152 fs::write(root.join("dir/sub/file.txt"), b"x").unwrap();
153 fs::write(root.join("foo.md"), b"y").unwrap();
154 dir
155 }
156
157 #[test]
158 fn exact_path_reports_metadata() {

Calls 3

writeFunction · 0.50
unwrapMethod · 0.45
pathMethod · 0.45