()
| 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected