• Home
  • Raw
  • Download

Lines Matching refs:from_str

1472     fn from_str(s: &str) -> ParseResult<NaiveDateTime> {  in from_str()  method
1535 fn test_decodable_json<F, E>(from_str: F) in test_decodable_json()
1543 from_str(r#""2016-07-08T09:10:48.090""#).ok(), in test_decodable_json()
1547 from_str(r#""2016-7-8T9:10:48.09""#).ok(), in test_decodable_json()
1551 from_str(r#""2014-07-24T12:34:06""#).ok(), in test_decodable_json()
1555 from_str(r#""0000-01-01T00:00:60""#).ok(), in test_decodable_json()
1559 from_str(r#""0-1-1T0:0:60""#).ok(), in test_decodable_json()
1563 from_str(r#""-0001-12-31T23:59:59.000000007""#).ok(), in test_decodable_json()
1566 assert_eq!(from_str(r#""-262144-01-01T00:00:00""#).ok(), Some(MIN_DATE.and_hms(0, 0, 0))); in test_decodable_json()
1568 from_str(r#""+262143-12-31T23:59:60.999999999""#).ok(), in test_decodable_json()
1572 from_str(r#""+262143-12-31T23:59:60.9999999999997""#).ok(), // excess digits are ignored in test_decodable_json()
1577 assert!(from_str(r#""""#).is_err()); in test_decodable_json()
1578 assert!(from_str(r#""2016-07-08""#).is_err()); in test_decodable_json()
1579 assert!(from_str(r#""09:10:48.090""#).is_err()); in test_decodable_json()
1580 assert!(from_str(r#""20160708T091048.090""#).is_err()); in test_decodable_json()
1581 assert!(from_str(r#""2000-00-00T00:00:00""#).is_err()); in test_decodable_json()
1582 assert!(from_str(r#""2000-02-30T00:00:00""#).is_err()); in test_decodable_json()
1583 assert!(from_str(r#""2001-02-29T00:00:00""#).is_err()); in test_decodable_json()
1584 assert!(from_str(r#""2002-02-28T24:00:00""#).is_err()); in test_decodable_json()
1585 assert!(from_str(r#""2002-02-28T23:60:00""#).is_err()); in test_decodable_json()
1586 assert!(from_str(r#""2002-02-28T23:59:61""#).is_err()); in test_decodable_json()
1587 assert!(from_str(r#""2016-07-08T09:10:48,090""#).is_err()); in test_decodable_json()
1588 assert!(from_str(r#""2016-07-08 09:10:48.090""#).is_err()); in test_decodable_json()
1589 assert!(from_str(r#""2016-007-08T09:10:48.090""#).is_err()); in test_decodable_json()
1590 assert!(from_str(r#""yyyy-mm-ddThh:mm:ss.fffffffff""#).is_err()); in test_decodable_json()
1591 assert!(from_str(r#"20160708000000"#).is_err()); in test_decodable_json()
1592 assert!(from_str(r#"{}"#).is_err()); in test_decodable_json()
1594 assert!(from_str(r#"{"date":{"ymdf":20},"time":{"secs":0,"frac":0}}"#).is_err()); in test_decodable_json()
1595 assert!(from_str(r#"null"#).is_err()); in test_decodable_json()
1599 fn test_decodable_json_timestamp<F, E>(from_str: F) in test_decodable_json_timestamp()
1605 *from_str("0").unwrap(), in test_decodable_json_timestamp()
1610 *from_str("-1").unwrap(), in test_decodable_json_timestamp()
2208 super::test_decodable_json(|input| self::serde_json::from_str(&input)); in test_serde_deserialize()