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

Method log

atomic-cli/tests/it/git_shim_logging_test.rs:85–95  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

83 }
84
85 fn log(&self) -> String {
86 let mut files: Vec<PathBuf> = fs::read_dir(self.log_dir())
87 .unwrap()
88 .map(|entry| entry.unwrap().path())
89 .collect();
90 files.sort();
91 files
92 .iter()
93 .map(|path| fs::read_to_string(path).unwrap())
94 .collect()
95 }
96}
97
98impl Sandbox {

Calls 6

log_dirMethod · 0.80
sortMethod · 0.80
collectMethod · 0.45
unwrapMethod · 0.45
pathMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected