Lines Matching refs:untrusted
16 fn test_input_from() { let _ = untrusted::Input::from(b"foo"); } in test_input_from()
20 let input = untrusted::Input::from(b""); in test_input_is_empty()
22 let input = untrusted::Input::from(b"foo"); in test_input_is_empty()
28 let input = untrusted::Input::from(b"foo"); in test_input_len()
34 let input = untrusted::Input::from(b"foo"); in test_input_read_all()
35 let result = input.read_all(untrusted::EndOfInput, |input| { in test_input_read_all()
47 let input = untrusted::Input::from(b"foo"); in test_input_read_all_unconsume()
48 let result = input.read_all(untrusted::EndOfInput, |input| { in test_input_read_all_unconsume()
53 assert_eq!(result, Err(untrusted::EndOfInput)); in test_input_read_all_unconsume()
59 let input = untrusted::Input::from(slice); in test_input_as_slice_less_safe()
65 let input = untrusted::Input::from(&[]); in using_reader_after_skip_and_get_error_returns_error_must_not_panic()
66 let r = input.read_all(untrusted::EndOfInput, |input| { in using_reader_after_skip_and_get_error_returns_error_must_not_panic()
68 assert_eq!(r, Err(untrusted::EndOfInput)); in using_reader_after_skip_and_get_error_returns_error_must_not_panic()
84 const _INPUT: untrusted::Input<'static> = untrusted::Input::from(&[]); in const_fn()
91 let _x: untrusted::Input = (&vec[..]).into(); in test_vec_into()
97 let _x: untrusted::Input = slice.into(); in test_from_slice()