(&self)
| 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 | |
| 98 | impl Sandbox { |
no test coverage detected