universal_mocking_library/lib.rs
1use rand::prelude::*;
2
3lazy_static::lazy_static! {
4 static ref MOCKS: Vec<&'static str> = vec![
5 "Your mother was a hamster and your father smelt of elderberries.",
6 "You have disturbing nasal hair.",
7 "Your pottery skills are lacking.",
8 "You are a windows user.",
9 "Your headphones cost less than $100",
10 "Your left knee is too circular."
11 ];
12}
13
14/// Run the universal mocking framework.
15///
16/// # Examples
17///
18/// ```rust
19/// use universal_mocking_library::mock;
20/// println!("{}", mock());
21/// ```
22pub fn mock() -> &'static str {
23 MOCKS.choose(&mut thread_rng()).unwrap()
24}