Write a new iteration to the current case
(&mut self, elapsed: Duration, row_count: usize)
| 135 | } |
| 136 | /// Write a new iteration to the current case |
| 137 | pub fn write_iter(&mut self, elapsed: Duration, row_count: usize) { |
| 138 | if let Some(idx) = self.current_case { |
| 139 | self.queries[idx] |
| 140 | .iterations |
| 141 | .push(QueryIter { elapsed, row_count }) |
| 142 | } else { |
| 143 | panic!("no cases existed yet"); |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | /// Print the names of failed queries, if any |
| 148 | pub fn maybe_print_failures(&self) { |