create test to... test

This commit is contained in:
bitfl0wer 2023-04-10 14:18:48 +02:00
parent 2829f2e2e0
commit 6ec87fc913
No known key found for this signature in database
GPG Key ID: 84BBB60DF895ABF2
1 changed files with 9 additions and 5 deletions

View File

@ -46,6 +46,8 @@ impl LimitedRequester {
e
)
});
println!("{}", result);
/*
2. extract rate and absolute rate limits from response result
3. put each different rate limit as a new object in the limit vector
@ -62,12 +64,14 @@ impl LimitedRequester {
}
}
/* #[cfg(test)] Tests work here as well, neat!
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_parse_url() {
assert_eq!(1, 1)
#[tokio::test]
async fn test_parse_url() {
let test_vec = LimitedRequester::check_limits(String::from("http://localhost:3001/")).await;
let first_from_vec = test_vec.get(0).unwrap();
println!("{}", first_from_vec.bucket);
}
} */
}