MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / test_format_bytes

Function test_format_bytes

crates/opencode-util/src/util.rs:318–323  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

316
317 #[test]
318 fn test_format_bytes() {
319 assert_eq!(format::format_bytes(500), "500 B");
320 assert_eq!(format::format_bytes(1024), "1.0 KB");
321 assert_eq!(format::format_bytes(1048576), "1.0 MB");
322 assert_eq!(format::format_bytes(1073741824), "1.0 GB");
323 }
324
325 #[test]
326 fn test_wildcard() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected