Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

333 B
Raw Blame
use super::redact_rpc_url;

#[test]
fn redact_rpc_url_strips_path_and_query() {
    assert_eq!(
        redact_rpc_url("https://user:[email protected]/path/secret?apiKey=123"),
        "https://example.com"
    );
}

#[test]
fn redact_rpc_url_handles_invalid_values() {
    assert_eq!(redact_rpc_url("not a url"), "<invalid-url>");
}