()
| 786 | /// Test format_bytes with megabytes. |
| 787 | #[test] |
| 788 | fn test_format_bytes_mb() { |
| 789 | assert_eq!(format_bytes(1024 * 1024), "1.0 MB"); |
| 790 | assert_eq!(format_bytes(2 * 1024 * 1024 + 512 * 1024), "2.5 MB"); |
| 791 | } |
| 792 | |
| 793 | /// Test format_bytes with gigabytes. |
| 794 | #[test] |
nothing calls this directly
no outgoing calls
no test coverage detected