Lines Matching refs:Needed
7 use crate::internal::{Err, IResult, Needed};
65 assert_eq!(a_or_b(e), Err(Err::Incomplete(Needed::new(1)))); in is_not()
282 assert_eq!(y(&b"nd"[..]), Err(Err::Incomplete(Needed::Unknown)));
283 assert_eq!(y(&b"123"[..]), Err(Err::Incomplete(Needed::Unknown)));
284 assert_eq!(y(&b"123en"[..]), Err(Err::Incomplete(Needed::Unknown)));
293 assert_eq!(ys("123en"), Err(Err::Incomplete(Needed::Unknown)));
365 assert_eq!(f(&a[..]), Err(Err::Incomplete(Needed::new(1))));
366 assert_eq!(f(&b[..]), Err(Err::Incomplete(Needed::new(1))));
383 assert_eq!(f(&a[..]), Err(Err::Incomplete(Needed::new(1))));
384 assert_eq!(f(&b[..]), Err(Err::Incomplete(Needed::new(1))));
406 assert_eq!(x(&a[..]), Err(Err::Incomplete(Needed::new(2))));
407 assert_eq!(x(&b[..]), Err(Err::Incomplete(Needed::new(1))));
408 assert_eq!(x(&c[..]), Err(Err::Incomplete(Needed::new(1))));
429 assert_eq!(f(&a[..]), Err(Err::Incomplete(Needed::new(1))));
432 assert_eq!(f(&d[..]), Err(Err::Incomplete(Needed::new(1))));
447 assert_eq!(f(&a[..]), Err(Err::Incomplete(Needed::new(1))));
453 assert_eq!(f(&d[..]), Err(Err::Incomplete(Needed::new(1))));
464 assert_eq!(f(""), Err(Err::Incomplete(Needed::new(1))));
465 assert_eq!(f("abcd"), Err(Err::Incomplete(Needed::new(1))));
473 assert_eq!(g(""), Err(Err::Incomplete(Needed::new(1))));
486 assert_eq!(f(""), Err(Err::Incomplete(Needed::new(1))));
487 assert_eq!(f("abcd"), Err(Err::Incomplete(Needed::new(1))));
495 assert_eq!(g(""), Err(Err::Incomplete(Needed::new(1))));
508 assert_eq!(f(""), Err(Err::Incomplete(Needed::Unknown)));
509 assert_eq!(f("ab"), Err(Err::Incomplete(Needed::Unknown)));
510 assert_eq!(f("點"), Err(Err::Incomplete(Needed::Unknown)));
519 assert_eq!(g(""), Err(Err::Incomplete(Needed::new(1))));
572 assert_eq!(x(b"\x02."), Err(Err::Incomplete(Needed::new(1))));
573 assert_eq!(x(b"\x02"), Err(Err::Incomplete(Needed::new(2))));
581 assert_eq!(y(b"magic\x02."), Err(Err::Incomplete(Needed::new(1))));
582 assert_eq!(y(b"magic\x02"), Err(Err::Incomplete(Needed::new(2))));
596 assert_eq!(test(&b"ab"[..]), Err(Err::Incomplete(Needed::new(2))));
612 assert_eq!(test2("ab"), Err(Err::Incomplete(Needed::new(2))));