()
| 747 | |
| 748 | #[test] |
| 749 | fn test_update_largest_file() { |
| 750 | let mut builder = RecordBuilder::new(); |
| 751 | |
| 752 | assert_eq!(builder.largest_file(), 0); |
| 753 | |
| 754 | builder.update_largest_file(1000); |
| 755 | assert_eq!(builder.largest_file(), 1000); |
| 756 | |
| 757 | builder.update_largest_file(500); // smaller, should not update |
| 758 | assert_eq!(builder.largest_file(), 1000); |
| 759 | |
| 760 | builder.update_largest_file(2000); // larger |
| 761 | assert_eq!(builder.largest_file(), 2000); |
| 762 | } |
| 763 | |
| 764 | #[test] |
| 765 | fn test_mark_binary_file() { |
nothing calls this directly
no test coverage detected