1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use rand::prelude::*;

lazy_static::lazy_static! {
    static ref MOCKS: Vec<&'static str> = vec![
        "Your mother was a hamster and your father smelt of elderberries.",
        "You have disturbing nasal hair.",
        "Your pottery skills are lacking.",
        "You are a windows user.",
        "Your headphones cost less than $100",
        "Your left knee is too circular."
    ];
}

/// Run the universal mocking framework.
///
/// # Examples
///
/// ```rust
/// use universal_mocking_library::mock;
/// println!("{}", mock());
/// ```
pub fn mock() -> &'static str {
    MOCKS.choose(&mut thread_rng()).unwrap()
}