From 31009e778cdaad57e111f63d4552137481a89946 Mon Sep 17 00:00:00 2001 From: Dave Rolsky Date: Wed, 25 Dec 2024 18:43:53 -0600 Subject: [PATCH] Remove `test_` from test function names --- ubi/src/github.rs | 14 +++++++------- ubi/src/gitlab.rs | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/ubi/src/github.rs b/ubi/src/github.rs index be08c0c..5239be6 100644 --- a/ubi/src/github.rs +++ b/ubi/src/github.rs @@ -106,23 +106,23 @@ mod tests { #[test(tokio::test)] #[serial] - async fn test_fetch_assets_without_token() -> Result<()> { - test_fetch_assets(None, None).await + async fn fetch_assets_without_token() -> Result<()> { + fetch_assets(None, None).await } #[test(tokio::test)] #[serial] - async fn test_fetch_assets_with_token() -> Result<()> { - test_fetch_assets(None, Some("ghp_fakeToken")).await + async fn fetch_assets_with_token() -> Result<()> { + fetch_assets(None, Some("ghp_fakeToken")).await } #[test(tokio::test)] #[serial] - async fn test_fetch_assets_with_tag() -> Result<()> { - test_fetch_assets(Some("v1.0.0"), None).await + async fn fetch_assets_with_tag() -> Result<()> { + fetch_assets(Some("v1.0.0"), None).await } - async fn test_fetch_assets(tag: Option<&str>, token: Option<&str>) -> Result<()> { + async fn fetch_assets(tag: Option<&str>, token: Option<&str>) -> Result<()> { let vars = env::vars(); env::remove_var("GITHUB_TOKEN"); diff --git a/ubi/src/gitlab.rs b/ubi/src/gitlab.rs index 4457455..1f993bc 100644 --- a/ubi/src/gitlab.rs +++ b/ubi/src/gitlab.rs @@ -108,23 +108,23 @@ mod tests { #[test(tokio::test)] #[serial] - async fn test_fetch_assets_without_token() -> Result<()> { - test_fetch_assets(None, None).await + async fn fetch_assets_without_token() -> Result<()> { + fetch_assets(None, None).await } #[test(tokio::test)] #[serial] - async fn test_fetch_assets_with_token() -> Result<()> { - test_fetch_assets(None, Some("glpat-fakeToken")).await + async fn fetch_assets_with_token() -> Result<()> { + fetch_assets(None, Some("glpat-fakeToken")).await } #[test(tokio::test)] #[serial] - async fn test_fetch_assets_with_tag() -> Result<()> { - test_fetch_assets(Some("v1.0.0"), None).await + async fn fetch_assets_with_tag() -> Result<()> { + fetch_assets(Some("v1.0.0"), None).await } - async fn test_fetch_assets(tag: Option<&str>, token: Option<&str>) -> Result<()> { + async fn fetch_assets(tag: Option<&str>, token: Option<&str>) -> Result<()> { let vars = env::vars(); env::remove_var("GITLAB_TOKEN"); env::remove_var("CI_JOB_TOKEN");