(data: &[u8])
| 49 | } |
| 50 | |
| 51 | fn fuzz_cycle(data: &[u8]) -> Result<(), ()> { |
| 52 | use arbitrary::{Arbitrary, Unstructured}; |
| 53 | |
| 54 | let mut ring = Unstructured::new(&data); |
| 55 | |
| 56 | let rng = seed(data); |
| 57 | let mut tested = rand_tinyvec(rng); |
| 58 | let mut model: Vec<u32> = Vec::from(tested.as_slice()); |
| 59 | |
| 60 | let mut tested = tested.drain(..); |
| 61 | let mut model = model.drain(..); |
| 62 | |
| 63 | while let Ok(op) = op::Op::arbitrary(&mut ring) { |
| 64 | op.execute_and_compare(&mut model, &mut tested); |
| 65 | } |
| 66 | |
| 67 | Ok(()) |
| 68 | } |
| 69 | |
| 70 | fn main() -> Result<(), ()> { |
| 71 | better_panic::install(); |
nothing calls this directly
no test coverage detected