aboutsummaryrefslogtreecommitdiff
path: root/src/strategy/test_strategies.rs
blob: 76bffd2e948240c8ce3813ca8a7a09f1f3036c1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#![deprecated(note = "Only for internal testing. Do not use")]
#![allow(deprecated)] // We need to allow ourselves the stuff we deprecate here.
//! Some strategies for internal testing.
//!
//! # Warning
//!
//! They come with no guarantees of correctness, stability, performance or anything at all. *DO NOT
//! USE*.

use super::hybrid::{Config, HybridStrategy};

/// Config for no fast slots.
#[derive(Clone, Copy, Default)]
pub struct NoFastSlots;

impl Config for NoFastSlots {
    const USE_FAST: bool = false;
}

/// A strategy that fills the slots with some crap to make sure we test the fallbacks too.
#[deprecated(note = "Only for internal testing. Do not use")]
pub type FillFastSlots = HybridStrategy<NoFastSlots>;