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

Function test_format_duration_seconds

src/cli/run/helpers/format_duration.rs:53–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51
52 #[test]
53 fn test_format_duration_seconds() {
54 assert_eq!(format_duration(1.1, None), "1.1 s");
55 assert_eq!(format_duration(1.1, Some(0)), "1 s");
56 assert_eq!(format_duration(1.234, Some(2)), "1.23 s");
57 }
58
59 #[test]
60 fn test_format_duration_milliseconds() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected