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

Function test_format_memory_gigabytes

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

Source from the content-addressed store, hash-verified

67
68 #[test]
69 fn test_format_memory_gigabytes() {
70 assert_eq!(format_memory(1073741824.0, None), "1 GB"); // 1024^3
71 assert_eq!(format_memory(1288490188.8, Some(2)), "1.2 GB");
72 }
73
74 #[test]
75 fn test_format_memory_zero() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected