(fixture_dirname: &str)
| 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()) |
nothing calls this directly
no outgoing calls
no test coverage detected