MCPcopy Create free account
hub / github.com/AmrDeveloper/GQL / valid_hours

Function valid_hours

crates/gitql-parser/src/parse_interval.rs:348–358  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

346
347 #[test]
348 fn valid_hours() {
349 let inputs = ["1 h", "1 hour", "1 hours", "1:00:00"];
350 for input in inputs {
351 let parse_result = parse_interval_literal(input, SourceLocation::default());
352 assert!(parse_result.is_ok());
353
354 if let Ok(interval) = parse_result {
355 assert_eq!(interval.hours, 1);
356 }
357 }
358 }
359
360 #[test]
361 fn valid_weeks() {

Callers

nothing calls this directly

Calls 1

parse_interval_literalFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…