Mark current query
(&mut self)
| 159 | |
| 160 | /// Mark current query |
| 161 | pub fn mark_failed(&mut self) { |
| 162 | if let Some(idx) = self.current_case { |
| 163 | self.queries[idx].success = false; |
| 164 | } else { |
| 165 | unreachable!("Cannot mark failure: no current case"); |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | /// Stringify data into formatted json |
| 170 | pub fn to_json(&self) -> String { |