Skip to content

Commit 1563096

Browse files
Add allow(dead_code) to test helper functions
Add attribute to all create_test_* functions to suppress warnings for utility code that may be used in future tests 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent ffe280d commit 1563096

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/common/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ fn get_test_database_url() -> String {
129129
}
130130

131131
/// Create a test user
132+
#[allow(dead_code)]
132133
pub async fn create_test_user(
133134
db: &PgPool,
134135
email: &str,
@@ -198,6 +199,7 @@ pub fn generate_test_token(user_id: uuid::Uuid, email: &str, is_organizer: bool)
198199
}
199200

200201
/// Create a test label
202+
#[allow(dead_code)]
201203
pub async fn create_test_label(db: &PgPool, name: &str, color: &str) -> uuid::Uuid {
202204
sqlx::query_scalar::<_, uuid::Uuid>(
203205
r#"
@@ -214,6 +216,7 @@ pub async fn create_test_label(db: &PgPool, name: &str, color: &str) -> uuid::Uu
214216
}
215217

216218
/// Create a test conference
219+
#[allow(dead_code)]
217220
pub async fn create_test_conference(db: &PgPool, name: &str) -> uuid::Uuid {
218221
sqlx::query_scalar::<_, uuid::Uuid>(
219222
r#"
@@ -229,6 +232,7 @@ pub async fn create_test_conference(db: &PgPool, name: &str) -> uuid::Uuid {
229232
}
230233

231234
/// Create a test track
235+
#[allow(dead_code)]
232236
pub async fn create_test_track(db: &PgPool, conference_id: uuid::Uuid, name: &str) -> uuid::Uuid {
233237
sqlx::query_scalar::<_, uuid::Uuid>(
234238
r#"
@@ -245,6 +249,7 @@ pub async fn create_test_track(db: &PgPool, conference_id: uuid::Uuid, name: &st
245249
}
246250

247251
/// Create a test talk
252+
#[allow(dead_code)]
248253
pub async fn create_test_talk(
249254
db: &PgPool,
250255
speaker_id: uuid::Uuid,

0 commit comments

Comments
 (0)