MCPcopy Create free account
hub / github.com/cel-rust/cel-rust / assert_duration

Function assert_duration

cel/src/duration.rs:217–220  ·  view source on GitHub ↗
(input: &str, expected: Duration)

Source from the content-addressed store, hash-verified

215 use chrono::Duration;
216
217 fn assert_duration(input: &str, expected: Duration) {
218 let (_, duration) = parse_duration(input).unwrap();
219 assert_eq!(duration, expected, "{input}");
220 }
221
222 fn assert_print_duration(input: Duration, expected: &str) {
223 let actual = format_duration(&input);

Callers

nothing calls this directly

Calls 1

parse_durationFunction · 0.85

Tested by

no test coverage detected