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

Function parse_hms_seconds

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

Source from the content-addressed store, hash-verified

135
136 #[test]
137 fn parse_hms_seconds() {
138 let duration = parse_hms_time_inner().parse_text("01").unwrap();
139 assert_eq!(duration.as_secs(), 1);
140
141 let duration = parse_hms_time_inner().parse_text("1").unwrap();
142 assert_eq!(duration.as_secs(), 1);
143 }
144
145 #[test]
146 fn parse_hms_minutes() {

Callers

nothing calls this directly

Calls 2

parse_hms_time_innerFunction · 0.85
parse_textMethod · 0.80

Tested by

no test coverage detected