- chore: ran cargo fix on the codebase

This commit is contained in:
2025-03-07 21:03:15 -05:00
parent 3b789d0fd4
commit b6f2d3f456
59 changed files with 1324 additions and 523 deletions

View File

@@ -4,7 +4,7 @@ use tokio;
async fn test_get_user() {
// // Set up a temporary in-memory PostgreSQL database
// let pool = PgPool::connect("postgres://user:password@localhost/test_database").await.unwrap();
//
//
// // Create the test table
// pool.execute(
// r#"
@@ -20,7 +20,7 @@ async fn test_get_user() {
// )
// .await
// .unwrap();
//
//
// // Test the `get_user` function
// let user = get_user(&pool, "123").await.unwrap();
// assert_eq!(user.user_id, "123");

View File

@@ -9,4 +9,4 @@ mod tests {
// let db = Database::new(&database_url).await;
// assert!(db.health_check().await);
}
}
}

View File

@@ -3,13 +3,13 @@ async fn test_redis_cache() {
// dotenv().ok();
// let redis_url = std::env::var("REDIS_URL").unwrap_or_else(|_| "redis://127.0.0.1:6379".to_string());
// let cache = RedisCache::new(&redis_url);
//
//
// let key = &"test_key".to_string();
// let value = "test_value";
//
//
// // Test setting a value
// cache.set(key, &value, 10).await.unwrap();
//
//
// // Test getting the value
// let cached_value: Option<String> = cache.get(key).await.unwrap();
// assert_eq!(cached_value, Some("test_value".to_string()));