impl RemovableScheduler for GenerationScheduler

This commit is contained in:
Alwin Berger 2024-10-29 18:21:46 +01:00
parent 0a6888d06a
commit f1affaabff

View File

@ -265,6 +265,31 @@ where
// } // }
} }
impl<S> RemovableScheduler for GenerationScheduler<S>
where
S: State + HasCorpus + HasMetadata,
{
/// Replaces the testcase at the given idx
fn on_replace(
&mut self,
state: &mut <Self as UsesState>::State,
idx: CorpusId,
testcase: &Testcase<<<Self as UsesState>::State as UsesInput>::Input>,
) -> Result<(), Error> {
Ok(())
}
/// Removes an entry from the corpus
fn on_remove(
&mut self,
state: &mut <Self as UsesState>::State,
idx: CorpusId,
testcase: &Option<Testcase<<<Self as UsesState>::State as UsesInput>::Input>>,
) -> Result<(), Error> {
Ok(())
}
}
impl<S> GenerationScheduler<S> impl<S> GenerationScheduler<S>
{ {
#[allow(unused)] #[allow(unused)]