MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_format_bytes_mb

Function test_format_bytes_mb

atomic-cli/src/commands/pull/helpers.rs:788–791  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected