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

Function valid_weeks

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

Source from the content-addressed store, hash-verified

359
360 #[test]
361 fn valid_weeks() {
362 let inputs = [
363 "2 w",
364 "2 week",
365 "2 weeks",
366 "1 week 7 day",
367 "1 w 7 d",
368 "1 weeks 7 days",
369 ];
370
371 for input in inputs {
372 let parse_result = parse_interval_literal(input, SourceLocation::default());
373 assert!(parse_result.is_ok());
374
375 if let Ok(interval) = parse_result {
376 assert_eq!(interval.days, 14);
377 }
378 }
379 }
380
381 #[test]
382 fn valid_seconds() {

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…