test(add): first tests
This commit is contained in:
1 parent
6b7a82bec6
commit
fe628ffc9f
4 files changed
+109
-12
No files matched your search
@@ -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