MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / test_format_memory_bytes

Function test_format_memory_bytes

src/cli/run/helpers/format_memory.rs:48–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46
47 #[test]
48 fn test_format_memory_bytes() {
49 assert_eq!(format_memory(100.0, None), "100 B");
50 assert_eq!(format_memory(100.0, Some(0)), "100 B");
51 assert_eq!(format_memory(123.45, Some(2)), "123.45 B");
52 }
53
54 #[test]
55 fn test_format_memory_kilobytes() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected