(length: usize)
| 16 | type E = Box<dyn std::error::Error + Send + Sync + 'static>; |
| 17 | |
| 18 | fn get_random_string(length: usize) -> String { |
| 19 | let mut rng = rand::thread_rng(); |
| 20 | return (0..length) |
| 21 | .map(|_| rng.sample(Alphanumeric) as char) |
| 22 | .collect(); |
| 23 | } |
| 24 | |
| 25 | fn get_random_product() -> Product { |
| 26 | let mut rng = rand::thread_rng(); |
no outgoing calls
no test coverage detected