MCPcopy Create free account
hub / github.com/emwalker/digraph / copy

Method copy

backend/tests/git/fixtures.rs:60–72  ·  view source on GitHub ↗
(fixture_dirname: &str)

Source from the content-addressed store, hash-verified

58 }
59
60 pub fn copy(fixture_dirname: &str) -> Self {
61 let fixture = Fixtures::blank(fixture_dirname);
62 let options = dir::CopyOptions {
63 overwrite: true,
64 content_only: true,
65 ..Default::default()
66 };
67 log::debug!("copying: {:?}", fixture.source);
68 dir::copy(&fixture.source, &fixture.path, &options).unwrap_or_else(|_| {
69 panic!("problem copying {:?} to {:?}", fixture.source, fixture.path)
70 });
71 fixture
72 }
73
74 pub fn no_leaks(&self) -> Result<bool> {
75 Ok(self.leaked_data()?.is_empty())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected