pub enum Phase {
Explicit,
Reuse,
Generate,
Target,
Shrink,
}Expand description
Controls which phases of the test lifecycle are executed.
By default, all phases run. Use Settings::phases to restrict which
phases execute — for example, passing only [Phase::Generate] disables
shrinking, which is useful when you only need to find a counterexample
quickly and don’t need the minimal one.
Corresponds to a subset of hypothesis.Phase (the explain phase is not
yet supported in hegel-rust).
Variants§
Explicit
Run explicit test cases added via #[hegel::explicit_test_case].
Reuse
Replay examples from the failure database.
Generate
Generate new random examples.
Target
Use targeting to guide generation toward interesting areas.
Shrink
Shrink failing examples to a minimal counterexample.
Trait Implementations§
impl Copy for Phase
impl Eq for Phase
impl StructuralPartialEq for Phase
Auto Trait Implementations§
impl Freeze for Phase
impl RefUnwindSafe for Phase
impl Send for Phase
impl Sync for Phase
impl Unpin for Phase
impl UnsafeUnpin for Phase
impl UnwindSafe for Phase
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more