| /external/rust/android-crates-io/crates/arbitrary/src/ |
| D | unstructured.rs | 9 //! Wrappers around raw, unstructured bytes. 16 /// A source of unstructured data. 18 /// An `Unstructured` helps `Arbitrary` implementations interpret raw data 21 /// string" (the raw data wrapped by an `Unstructured`) results in a small 25 /// `Unstructured` is deterministic: given the same raw data, the same series of 27 /// like running out of memory). However, `Unstructured` does not guarantee 31 /// You shouldn't generally need to use an `Unstructured` unless you are writing 42 /// Below is what translating the fuzzer's raw input into an `Unstructured` and 47 /// use arbitrary::{Arbitrary, Unstructured}; 61 /// // Wrap it in an `Unstructured`. [all …]
|
| D | tests.rs | 2 super::{Arbitrary, Result, Unstructured}, 36 let mut u = Unstructured::new(&buf); in assert_generates() 40 let u = Unstructured::new(&buf); in assert_generates() 58 fn checked_arbitrary<'a, T: Arbitrary<'a>>(u: &mut Unstructured<'a>) -> Result<T> { in checked_arbitrary() 88 fn checked_arbitrary_take_rest<'a, T: Arbitrary<'a>>(u: Unstructured<'a>) -> Result<T> { in checked_arbitrary_take_rest() 109 let mut rb = Unstructured::new(&x); in finite_buffer_fill_buffer() 122 let mut buf = Unstructured::new(&x); in arbitrary_for_integers() 141 let mut buf = Unstructured::new(&x); in arbitrary_for_bytes() 150 let buf = Unstructured::new(&x); in arbitrary_take_rest_for_bytes() 230 checked_arbitrary::<&[u8]>(&mut Unstructured::new(&x)).unwrap(), in arbitrary_collection() [all …]
|
| D | lib.rs | 28 pub mod unstructured; module 39 pub use unstructured::Unstructured; 54 /// Generate arbitrary structured values from raw, unstructured data. 58 /// raw, unstructured bytes provided by a fuzzer. 121 /// [`Unstructured`] type helps you with these tasks. 130 /// use arbitrary::{Arbitrary, Result, Unstructured}; 136 /// fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { 164 /// Generate an arbitrary value of `Self` from the given unstructured data. 168 /// raw data in an `Unstructured`, and then you can call `<MyType as 170 /// from that unstructured data. [all …]
|
| /external/rust/android-crates-io/crates/arbitrary/examples/ |
| D | derive_enum.rs | 9 use arbitrary::{Arbitrary, Unstructured}; 25 let raw = b"This is some raw, unstructured data!"; in main() 27 let mut unstructured = Unstructured::new(raw); in main() localVariable 29 let instance = MyEnum::arbitrary(&mut unstructured) in main() 30 .expect("`unstructured` has enough underlying data to create all variants of `MyEnum`"); in main()
|
| /external/cronet/stable/third_party/rust/chromium_crates_io/vendor/qr_code-2.0.0/src/ |
| D | fuzz.rs | 6 fn arbitrary(u: &mut arbitrary::Unstructured<'_>) -> arbitrary::Result<Self> { in arbitrary() 50 fn arbitrary(u: &mut arbitrary::Unstructured<'_>) -> arbitrary::Result<Self> { in arbitrary() 72 fn arbitrary(u: &mut arbitrary::Unstructured<'_>) -> arbitrary::Result<Self> { in arbitrary() 109 let unstructured = arbitrary::Unstructured::new(&data[..]); in test_fuzz_decode_check() localVariable 110 let qr_code_data = crate::QrCodeData::arbitrary_take_rest(unstructured).unwrap(); in test_fuzz_decode_check() 128 let unstructured = arbitrary::Unstructured::new(&data[..]); in test_fuzz_split_merge_rt() localVariable 129 let (version, bytes) = <(i16, Vec<u8>)>::arbitrary_take_rest(unstructured).unwrap(); in test_fuzz_split_merge_rt()
|
| /external/cronet/tot/third_party/rust/chromium_crates_io/vendor/qr_code-2.0.0/src/ |
| D | fuzz.rs | 6 fn arbitrary(u: &mut arbitrary::Unstructured<'_>) -> arbitrary::Result<Self> { in arbitrary() 50 fn arbitrary(u: &mut arbitrary::Unstructured<'_>) -> arbitrary::Result<Self> { in arbitrary() 72 fn arbitrary(u: &mut arbitrary::Unstructured<'_>) -> arbitrary::Result<Self> { in arbitrary() 109 let unstructured = arbitrary::Unstructured::new(&data[..]); in test_fuzz_decode_check() localVariable 110 let qr_code_data = crate::QrCodeData::arbitrary_take_rest(unstructured).unwrap(); in test_fuzz_decode_check() 128 let unstructured = arbitrary::Unstructured::new(&data[..]); in test_fuzz_split_merge_rt() localVariable 129 let (version, bytes) = <(i16, Vec<u8>)>::arbitrary_take_rest(unstructured).unwrap(); in test_fuzz_split_merge_rt()
|
| /external/rust/android-crates-io/crates/arbitrary/src/foreign/std/ |
| D | net.rs | 2 crate::{size_hint, Arbitrary, Result, Unstructured}, 7 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() 18 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() 29 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() 46 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() 57 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() 79 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
|
| /external/rust/android-crates-io/crates/arbitrary/tests/ |
| D | derive.rs | 12 let mut buf = Unstructured::new(input); in arbitrary_from() 57 let s1 = EndingInVec::arbitrary_take_rest(Unstructured::new(&bytes)).unwrap(); in test_take_rest() 58 let s2 = EndingInString::arbitrary_take_rest(Unstructured::new(&bytes)).unwrap(); in test_take_rest() 140 let unstructured = Unstructured::new(&buffer); in test_skip_variant() localVariable 141 let skip_variant = SkipVariant::arbitrary_take_rest(unstructured).unwrap(); in test_skip_variant() 304 let _ = Nat::arbitrary(&mut Unstructured::new(&[])); in recursive_and_empty_input() 312 let _ = Nat2::arbitrary(&mut Unstructured::new(&[])); in recursive_and_empty_input() 319 let _ = Nat3::arbitrary(&mut Unstructured::new(&[])); in recursive_and_empty_input() 324 let _ = Nat4::arbitrary(&mut Unstructured::new(&[])); in recursive_and_empty_input() 332 let _ = Nat5::arbitrary(&mut Unstructured::new(&[])); in recursive_and_empty_input() [all …]
|
| /external/rust/android-crates-io/crates/uuid/src/external/ |
| D | arbitrary_support.rs | 7 use arbitrary::{Arbitrary, Unstructured}; 10 fn arbitrary(u: &mut Unstructured<'_>) -> arbitrary::Result<Self> { in arbitrary() 24 fn arbitrary(u: &mut arbitrary::Unstructured<'_>) -> arbitrary::Result<Self> { in arbitrary() 42 let mut bytes = Unstructured::new(&[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]); in test_arbitrary() 52 let mut bytes = Unstructured::new(&[]); in test_arbitrary_empty() 62 let mut bytes = Unstructured::new(&[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]); in test_arbitrary_non_nil()
|
| /external/rust/android-crates-io/crates/arbitrary/src/foreign/alloc/ |
| D | boxed.rs | 2 crate::{size_hint, Arbitrary, Result, Unstructured}, 10 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() 29 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() 33 fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self> { in arbitrary_take_rest() 44 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
|
| D | sync.rs | 2 crate::{size_hint, Arbitrary, Result, Unstructured}, 10 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() 29 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() 33 fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self> { in arbitrary_take_rest() 44 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
|
| D | rc.rs | 2 crate::{size_hint, Arbitrary, Result, Unstructured}, 10 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() 29 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() 33 fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self> { in arbitrary_take_rest() 44 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
|
| D | vec.rs | 2 crate::{Arbitrary, Result, Unstructured}, 10 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() 14 fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self> { in arbitrary_take_rest()
|
| /external/rust/android-crates-io/crates/arbitrary/src/foreign/core/ |
| D | num.rs | 2 crate::{Arbitrary, Error, MaxRecursionReached, Result, Unstructured}, 16 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { 50 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() 61 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() 75 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { 96 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { 128 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
|
| D | str.rs | 2 crate::{Arbitrary, Result, Unstructured}, 6 fn arbitrary_str<'a>(u: &mut Unstructured<'a>, size: usize) -> Result<&'a str> { in arbitrary_str() 25 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() 30 fn arbitrary_take_rest(mut u: Unstructured<'a>) -> Result<Self> { in arbitrary_take_rest()
|
| D | cell.rs | 2 crate::{Arbitrary, MaxRecursionReached, Result, Unstructured}, 10 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() 29 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() 48 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
|
| D | slice.rs | 1 use crate::{Arbitrary, Result, Unstructured}; 4 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() 9 fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self> { in arbitrary_take_rest()
|
| /external/rust/android-crates-io/crates/arbitrary/ |
| D | README.md | 5 …<p><strong>The trait for generating structured data from arbitrary, unstructured input.</strong></… 81 // fn(&mut Unstructured) -> arbitrary::Result<T> 88 #[arbitrary(with = |u: &mut Unstructured| u.int_in_range(0..=64))] 92 fn arbitrary_b(u: &mut Unstructured) -> arbitrary::Result<u8> { 104 use arbitrary::{Arbitrary, Result, Unstructured}; 114 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> {
|
| D | CHANGELOG.md | 38 * Added the `Unstructured::choose_iter` helper method. 155 * Fixed a bug where `Unstructured::int_in_range` could return out-of-range 171 * The `Unstructured::arbitrary_loop` method will consume fewer bytes of input 176 * Fixed a bug where `Unstructured::int_in_range` could return out-of-range 224 * Added the `Unstructured::ratio` method to generate a boolean that is `true` at 227 * Added the `Unstructured::arbitrary_loop` method to call a function an 238 * Fixed documentation for `Unstructured::fill_bytes`. We forgot to update this 267 * Use fewer bytes for `Unstructured::int_in_range()` [#80](https://github.com/rust-fuzz/arbitrary/p… 291 * Rename `Unstructured#get_bytes` to `Unstructured#bytes`. [#70](https://github.com/rust-fuzz/arbit… 292 * Passing an empty slice of choices to `Unstructured#choose` returns an error. Previously it would … [all …]
|
| /external/cronet/tot/third_party/rust/chromium_crates_io/vendor/bitflags-2.6.0/src/external/ |
| D | arbitrary.rs | 8 pub fn arbitrary<'a, B: Flags>(u: &mut arbitrary::Unstructured<'a>) -> arbitrary::Result<B> in arbitrary() 30 let mut unstructured = arbitrary::Unstructured::new(&[0_u8; 256]); in test_arbitrary() localVariable 31 let _color = Color::arbitrary(&mut unstructured); in test_arbitrary()
|
| /external/cronet/stable/third_party/rust/chromium_crates_io/vendor/bitflags-2.6.0/src/external/ |
| D | arbitrary.rs | 8 pub fn arbitrary<'a, B: Flags>(u: &mut arbitrary::Unstructured<'a>) -> arbitrary::Result<B> in arbitrary() 30 let mut unstructured = arbitrary::Unstructured::new(&[0_u8; 256]); in test_arbitrary() localVariable 31 let _color = Color::arbitrary(&mut unstructured); in test_arbitrary()
|
| /external/rust/android-crates-io/crates/bitflags/src/external/ |
| D | arbitrary.rs | 8 pub fn arbitrary<'a, B: Flags>(u: &mut arbitrary::Unstructured<'a>) -> arbitrary::Result<B> in arbitrary() 30 let mut unstructured = arbitrary::Unstructured::new(&[0_u8; 256]); in test_arbitrary() localVariable 31 let _color = Color::arbitrary(&mut unstructured); in test_arbitrary()
|
| /external/rust/android-crates-io/crates/indexmap/src/ |
| D | arbitrary.rs | 4 use arbitrary::{Arbitrary, Result, Unstructured}; 13 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() 17 fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self> { in arbitrary_take_rest() 27 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() 31 fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self> { in arbitrary_take_rest()
|
| /external/rust/android-crates-io/crates/arbitrary/src/foreign/core/sync/ |
| D | atomic.rs | 2 crate::{Arbitrary, Result, Unstructured}, 7 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() 18 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() 29 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
|
| /external/google-cloud-java/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ |
| D | ExecutionTemplateOrBuilder.java | 30 * Unstructured key value map that can be used to organize and categorize 50 * Unstructured key value map that can be used to organize and categorize 73 * Unstructured key value map that can be used to organize and categorize 93 * Unstructured key value map that can be used to organize and categorize 117 * Unstructured key value map that can be used to organize and categorize 138 * Unstructured key value map that may be set by external tools to store and 156 * Unstructured key value map that may be set by external tools to store and 177 * Unstructured key value map that may be set by external tools to store and 195 * Unstructured key value map that may be set by external tools to store and 217 * Unstructured key value map that may be set by external tools to store and
|