(&self, path: &str, content: &str)
| 149 | } |
| 150 | |
| 151 | fn write(&self, path: &str, content: &str) { |
| 152 | let full = self.root().join(path); |
| 153 | fs::create_dir_all(full.parent().unwrap()).unwrap(); |
| 154 | fs::write(full, content).unwrap(); |
| 155 | } |
| 156 | |
| 157 | fn head(&self) -> String { |
| 158 | self.git(&["rev-parse", "HEAD"]) |
no test coverage detected