MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / test_parse_timezone

Function test_parse_timezone

graphlite/src/functions/timezone_functions.rs:738–751  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

736
737 #[test]
738 fn test_parse_timezone() {
739 // Test named timezone
740 assert!(parse_timezone("America/New_York").is_ok());
741 assert!(parse_timezone("Europe/London").is_ok());
742 assert!(parse_timezone("Asia/Tokyo").is_ok());
743
744 // Test fixed offset
745 assert!(parse_timezone("+05:30").is_ok());
746 assert!(parse_timezone("-04:00").is_ok());
747
748 // Test invalid
749 assert!(parse_timezone("Invalid/Timezone").is_err());
750 assert!(parse_timezone("not-a-timezone").is_err());
751 }
752}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected