Refactoring tests (#257)
soaricarus_api CI / Rustfmt (push) Successful in 4m43s
soaricarus_api CI / Check (push) Successful in 5m26s
soaricarus_api CI / Test Suite (push) Successful in 6m4s
soaricarus_api CI / Clippy (push) Successful in 6m54s
soaricarus_api CI / build (push) Successful in 8m54s

Reviewed-on: #257
This commit was merged in pull request #257.
This commit is contained in:
2026-08-12 16:53:24 -04:00
parent 20bb7f4dad
commit 7188138018
4 changed files with 306 additions and 281 deletions
+25
View File
@@ -212,6 +212,31 @@ pub mod endpoint {
match lr.upload(&file_path, &data).await {
Ok(res) => {
println!("Result: {res:?}");
println!("Downloading file");
match lr.download(&file_path).await {
Ok(res) => {
if res.is_empty() {
println!("This should not be empty");
} else {
println!("Size: {:?}", res.len());
println!("Going to delete file");
match lr.delete(&file_path).await {
Ok(res) => {
println!("Result: {res:?}");
println!("Deleted");
}
Err(err) => {
eprintln!("Error: {err:?}");
}
}
}
}
Err(err) => {
eprintln!("Error: {err:?}");
}
}
}
Err(err) => match err {
labyrinth::Error::Info(err_str) => {