test(add): first tests

This commit is contained in:
grimhilt
2024-03-10 16:49:21 +01:00
parent 6b7a82bec6
commit fe628ffc9f
4 changed files with 109 additions and 12 deletions

11
tests/utils/utils.rs Normal file
View 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()
}