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

Function valid_seconds

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

Source from the content-addressed store, hash-verified

380
381 #[test]
382 fn valid_seconds() {
383 let inputs = ["10.1 second"];
384
385 for input in inputs {
386 let parse_result = parse_interval_literal(input, SourceLocation::default());
387 assert!(parse_result.is_ok());
388
389 if let Ok(interval) = parse_result {
390 assert_eq!(interval.seconds, 10.1);
391 }
392 }
393 }
394
395 #[test]
396 fn ago_direction() {

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…