The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore(core): replace inline test module with external test file
Steven Enamakel6fad33af6154
diff --git a/crates/openhuman-core/src/main.rs b/crates/openhuman-core/src/main.rsindex 02dc986d07..8ba5c36fb2 100644--- a/crates/openhuman-core/src/main.rs+++ b/crates/openhuman-core/src/main.rs@@ -362,60 +362,5 @@ fn scrub_secrets(input: &str) -> String {}#[cfg(all(test, feature = "crash-reporting"))]-mod tests {- use super::*;-- #[test]- fn scrubs_bearer_token() {- assert_eq!(- scrub_secrets("Authorization: Bearer abc123xyz"),- "Authorization: Bearer [REDACTED]"- );- }-- #[test]- fn scrubs_api_key() {- assert_eq!(scrub_secrets("api_key=sk-abc123"), "api_key=[REDACTED]");- }-- #[test]- fn scrubs_anthropic_key() {- assert_eq!(- scrub_secrets("key: sk-ant-api03-abcdefghijklmnop"),- "key: [REDACTED]"- );- }-- #[test]- fn scrubs_openai_admin_key() {- assert_eq!(- scrub_secrets("key: sk-admin-abcdefghijkl"),- "key: [REDACTED]"- );- }-- #[test]- fn scrubs_openai_proj_key() {- assert_eq!(- scrub_secrets("key: sk-proj-abcdefghijkl"),- "key: [REDACTED]"- );- }-- #[test]- fn scrubs_generic_sk_key() {- assert_eq!(scrub_secrets("sk-abcdefghijklmnopqrstuvwx"), "[REDACTED]");- }-- #[test]- fn token_word_boundary_no_false_positive() {- let input = "cancellation_token=abc123 next_page_token=xyz789";- let result = scrub_secrets(input);- assert_eq!(result, input, "should not scrub compound token fields");- }-- #[test]- fn standalone_token_is_scrubbed() {- assert_eq!(scrub_secrets("token=secret_value_here"), "token=[REDACTED]");- }-}+#[path = "main_tests.rs"]+mod tests;