MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / parse_hms_minutes

Function parse_hms_minutes

crates/hyperqueue/src/common/utils/time.rs:146–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

144
145 #[test]
146 fn parse_hms_minutes() {
147 let duration = parse_hms_time_inner().parse_text("1:1").unwrap();
148 assert_eq!(duration.as_secs(), 60 + 1);
149
150 let duration = parse_hms_time_inner().parse_text("80:02").unwrap();
151 assert_eq!(duration.as_secs(), 80 * 60 + 2);
152 }
153
154 #[test]
155 fn parse_hms_hours() {

Callers

nothing calls this directly

Calls 2

parse_hms_time_innerFunction · 0.85
parse_textMethod · 0.80

Tested by

no test coverage detected