upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/grasp-audit/src/specs/grasp01/repository_creation.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2025-12-01 14:31:32 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2025-12-01 15:22:38 +0000
commitd2ac69816567f092fe0d4661723bc43778cb481b (patch)
treee8b51b61a6a7b0ab1a214adebe4e237143b01f0b /grasp-audit/src/specs/grasp01/repository_creation.rs
parent7a78815e29b01c83f3d0ec195ba717a2eba8cd37 (diff)
fix cargo clippy and fmt warnings
Diffstat (limited to 'grasp-audit/src/specs/grasp01/repository_creation.rs')
-rw-r--r--grasp-audit/src/specs/grasp01/repository_creation.rs20
1 files changed, 4 insertions, 16 deletions
diff --git a/grasp-audit/src/specs/grasp01/repository_creation.rs b/grasp-audit/src/specs/grasp01/repository_creation.rs
index 63b3dee..0b3eed5 100644
--- a/grasp-audit/src/specs/grasp01/repository_creation.rs
+++ b/grasp-audit/src/specs/grasp01/repository_creation.rs
@@ -23,10 +23,7 @@ pub struct RepositoryCreationTests;
23 23
24impl RepositoryCreationTests { 24impl RepositoryCreationTests {
25 /// Run all repository creation tests 25 /// Run all repository creation tests
26 pub async fn run_all( 26 pub async fn run_all(client: &AuditClient, relay_domain: &str) -> crate::AuditResult {
27 client: &AuditClient,
28 relay_domain: &str,
29 ) -> crate::AuditResult {
30 let mut results = crate::AuditResult::new("GRASP-01 Repository Creation Tests"); 27 let mut results = crate::AuditResult::new("GRASP-01 Repository Creation Tests");
31 28
32 results.add(Self::test_bare_repo_created_on_announcement(client, relay_domain).await); 29 results.add(Self::test_bare_repo_created_on_announcement(client, relay_domain).await);
@@ -58,7 +55,7 @@ impl RepositoryCreationTests {
58 "GRASP-01", 55 "GRASP-01",
59 "Bare repository must be created and accessible via Smart HTTP when announcement is accepted", 56 "Bare repository must be created and accessible via Smart HTTP when announcement is accepted",
60 ) 57 )
61 .fail(&format!("Failed to create repo fixture: {}", e)) 58 .fail(format!("Failed to create repo fixture: {}", e))
62 } 59 }
63 }; 60 };
64 61
@@ -91,7 +88,7 @@ impl RepositoryCreationTests {
91 "GRASP-01", 88 "GRASP-01",
92 "Bare repository must be created and accessible via Smart HTTP when announcement is accepted", 89 "Bare repository must be created and accessible via Smart HTTP when announcement is accepted",
93 ) 90 )
94 .fail(&format!("Failed to convert pubkey to npub: {}", e)) 91 .fail(format!("Failed to convert pubkey to npub: {}", e))
95 } 92 }
96 }; 93 };
97 94
@@ -102,7 +99,7 @@ impl RepositoryCreationTests {
102 "GRASP-01", 99 "GRASP-01",
103 "Bare repository must be created and accessible via Smart HTTP when announcement is accepted", 100 "Bare repository must be created and accessible via Smart HTTP when announcement is accepted",
104 ) 101 )
105 .fail(&format!("Repository not accessible via HTTP: {}", e)); 102 .fail(format!("Repository not accessible via HTTP: {}", e));
106 } 103 }
107 104
108 TestResult::new( 105 TestResult::new(
@@ -159,12 +156,3 @@ async fn check_repo_accessible_via_http(
159 156
160 Ok(()) 157 Ok(())
161} 158}
162
163#[cfg(test)]
164mod tests {
165 #[test]
166 fn test_module_exists() {
167 // Simple compilation test
168 assert!(true);
169 }
170}