test(add): first tests
This commit is contained in:
11
tests/utils/utils.rs
Normal file
11
tests/utils/utils.rs
Normal file
@@ -0,0 +1,11 @@
|
||||
use rand::{distributions::Alphanumeric, Rng};
|
||||
|
||||
pub fn get_random_test_id() -> String {
|
||||
let mut id: String = rand::thread_rng()
|
||||
.sample_iter(&Alphanumeric)
|
||||
.take(7)
|
||||
.map(char::from)
|
||||
.collect();
|
||||
id.push_str("_nextsync");
|
||||
id.to_owned()
|
||||
}
|
||||
Reference in New Issue
Block a user