pub fn generate_timeout(&mut self, u: &mut Unstructured<'_>) -> arbitrary::Result<Timeout> {
        let time_duration = Duration::from_secs(20);
        let timeout = u
            .choose(&[Timeout::Fuel(100_000), Timeout::Epoch(time_duration)])?
            .clone();
        match &timeout {
            Timeout::Fuel(..) => {
                self.wasmtime.consume_fuel = true;
            }
            Timeout::Epoch(..) => {
                self.wasmtime.epoch_interruption = true;
            }
            Timeout::None => unreachable!("Not an option given to choose()"),
        }
        Ok(timeout)
    }
/// Generates an arbitrary method of timing out an instance, ensuring that
/// this configuration supports the returned timeout.
Generates an arbitrary method of timing out an instance, ensuring that
this configuration supports the returned timeout.
Generates an arbitrary method of timing out an instance ensuring that this configuration supports the returned timeout .
pub fn generate_timeout(&mut self, u: &mut Unstructured<'_>) -> arbitrary::Result<Timeout> {
        let time_duration = Duration::from_secs(20);
        let timeout = u
            .choose(&[Timeout::Fuel(100_000), Timeout::Epoch(time_duration)])?
            .clone();
        match &timeout {
            Timeout::Fuel(..) => {
                self.wasmtime.consume_fuel = true;
            }
            Timeout::Epoch(..) => {
                self.wasmtime.epoch_interruption = true;
            }
            Timeout::None => unreachable!("Not an option given to choose()"),
        }
        Ok(timeout)
    }
pub fn generate_timeout ( & mut self , u : & mut Unstructured < ' _ > ) -> arbitrary :: Result < Timeout > { let time_duration = Duration :: from_secs ( 20 ) ; let timeout = u . choose ( & [ Timeout :: Fuel ( 100_000 ) , Timeout :: Epoch ( time_duration ) ] ) ? . clone ( ) ; match & timeout { Timeout :: Fuel ( .. ) => { self . wasmtime . consume_fuel = true ; } Timeout :: Epoch ( .. ) => { self . wasmtime . epoch_interruption = true ; } Timeout :: None => unreachable ! ( " " ) , } Ok ( timeout ) }
Generates an arbitrary method of timing out an instance, ensuring that
this configuration supports the returned timeout.
Generates an arbitrary method of timing out an instance ensuring that this configuration supports the returned timeout .
&mut self
u
&mut Unstructured<'_>
&mut self
u
&mut Unstructured<'_>