Append the trailing `# total failures: N` summary. Called once after all per-constant checks have reported.
(&self)
| 162 | /// Append the trailing `# total failures: N` summary. Called once after |
| 163 | /// all per-constant checks have reported. |
| 164 | fn finalize(&self) { |
| 165 | let mut file = self.writer.lock().unwrap(); |
| 166 | let _ = writeln!( |
| 167 | file, |
| 168 | "# total failures: {}", |
| 169 | self.count.load(Ordering::Relaxed) |
| 170 | ); |
| 171 | let _ = file.flush(); |
| 172 | } |
| 173 | |
| 174 | fn count(&self) -> usize { |
| 175 | self.count.load(Ordering::Relaxed) |