Merge another result into this one.
(&mut self, other: DetectResult)
| 678 | |
| 679 | /// Merge another result into this one. |
| 680 | pub fn merge(&mut self, other: DetectResult) { |
| 681 | self.files_checked += other.files_checked; |
| 682 | self.files_skipped += other.files_skipped; |
| 683 | self.added_count += other.added_count; |
| 684 | self.modified_count += other.modified_count; |
| 685 | self.deleted_count += other.deleted_count; |
| 686 | self.moved_count += other.moved_count; |
| 687 | self.metadata_only_count += other.metadata_only_count; |
| 688 | self.changes.extend(other.changes); |
| 689 | self.errors.extend(other.errors); |
| 690 | } |
| 691 | } |
| 692 | |
| 693 | // CONTENT COMPARISON |