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

Function test_format_bytes_small

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

Source from the content-addressed store, hash-verified

1050 /// Test format_bytes with small values.
1051 #[test]
1052 fn test_format_bytes_small() {
1053 assert_eq!(format_bytes(0), "0 B");
1054 assert_eq!(format_bytes(512), "512 B");
1055 assert_eq!(format_bytes(1023), "1023 B");
1056 }
1057
1058 /// Test format_bytes with kilobytes.
1059 #[test]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected