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

Function test_format_bytes_mb

atomic-cli/src/commands/clone/helpers.rs:1067–1070  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1065 /// Test format_bytes with megabytes.
1066 #[test]
1067 fn test_format_bytes_mb() {
1068 assert_eq!(format_bytes(1024 * 1024), "1.0 MB");
1069 assert_eq!(format_bytes(2 * 1024 * 1024 + 512 * 1024), "2.5 MB");
1070 }
1071
1072 /// Test format_bytes with gigabytes.
1073 #[test]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected