From a2bb8ff62366d805ddb8ee08ac70ea71250a1c2d Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Thu, 4 Dec 2025 11:49:31 +0000 Subject: docs: update grasp-audit docs --- grasp-audit/examples/simple_audit.rs | 53 ------------------------------------ 1 file changed, 53 deletions(-) delete mode 100644 grasp-audit/examples/simple_audit.rs (limited to 'grasp-audit/examples') diff --git a/grasp-audit/examples/simple_audit.rs b/grasp-audit/examples/simple_audit.rs deleted file mode 100644 index 57d4ac8..0000000 --- a/grasp-audit/examples/simple_audit.rs +++ /dev/null @@ -1,53 +0,0 @@ -//! Simple audit example -//! -//! Run with: cargo run --example simple_audit - -use grasp_audit::*; - -#[tokio::main] -async fn main() -> Result<()> { - // Create audit config with shared fixtures (default for CLI) - let config = AuditConfig::shared(); - - println!("GRASP Audit Example"); - println!("=================="); - println!("Audit Run ID: {}", config.run_id); - println!(); - - // Connect to relay - println!("Connecting to relay at ws://localhost:7000..."); - let client = match AuditClient::new("ws://localhost:7000", config).await { - Ok(c) => c, - Err(e) => { - eprintln!("Failed to connect: {}", e); - eprintln!(); - eprintln!("Make sure a Nostr relay is running at ws://localhost:7000"); - eprintln!("You can use: https://github.com/rust-nostr/nostr/tree/master/crates/nostr-relay-builder"); - return Err(e); - } - }; - - if !client.is_connected().await { - eprintln!("Not connected to relay"); - return Err(anyhow!("Connection failed")); - } - - println!("✓ Connected"); - println!(); - - // Run NIP-01 smoke tests - println!("Running NIP-01 smoke tests..."); - println!(); - - let results = specs::Nip01SmokeTests::run_all(&client).await; - - // Print results - results.print_report(); - - // Exit with error if tests failed - if !results.all_passed() { - std::process::exit(1); - } - - Ok(()) -} -- cgit v1.2.3