Lines Matching refs:Err
6 use crate::internal::{Err, IResult, Needed};
35 Err(Err::Error(error_position!(not_over, ErrorKind::Eof))) in eof_on_slices()
50 Err(Err::Error(error_position!(not_over, ErrorKind::Eof))) in eof_on_strs()
130 Err(Err::Error((&[50][..], ErrorKind::MapOpt))) in test_map_opt()
152 Err(Err::Error((&[102][..], ErrorKind::Eof))) in test_all_consuming()
170 Err(Err::Error((&b"defg"[..], ErrorKind::Verify))) in test_verify_ref()
189 Err(Err::Error((&b"defg"[..], ErrorKind::Verify))) in test_verify_alloc()
199 Err, in test_into()
219 assert_eq!(opt_abcd(c), Err(Err::Incomplete(Needed::new(2)))); in opt_test()
229 assert_eq!(peek_tag(&b"ab"[..]), Err(Err::Incomplete(Needed::new(2)))); in peek_test()
232 Err(Err::Error(error_position!(&b"xxx"[..], ErrorKind::Tag))) in peek_test()
244 Err(Err::Error(error_position!(&b"aaa"[..], ErrorKind::Not))) in not_test()
246 assert_eq!(not_aaa(&b"aa"[..]), Err(Err::Incomplete(Needed::new(1)))); in not_test()
257 assert_eq!(test(&b"bcd"[..]), Err(Err::Incomplete(Needed::new(2)))); in verify_test()
260 Err(Err::Error(error_position!( in verify_test()
273 assert_eq!(fail::<_, &str, _>(a), Err(Err::Error((a, ErrorKind::Fail)))); in fail_test()
274 assert_eq!(fail::<_, &str, _>(b), Err(Err::Error((b, ErrorKind::Fail)))); in fail_test()