Check if this change has any hunks.
(&self)
| 1457 | |
| 1458 | /// Check if this change has any hunks. |
| 1459 | pub fn is_empty(&self) -> bool { |
| 1460 | self.hunks.is_empty() |
| 1461 | && self.file_ops.is_empty() |
| 1462 | && self.span.as_ref().is_none_or(|span| span.ops.is_empty()) |
| 1463 | } |
| 1464 | |
| 1465 | /// Get the number of hunks. |
| 1466 | pub fn hunk_count(&self) -> usize { |
no test coverage detected