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: remove unused test files for memory display name and vault RPC
Steven Enamakelebe90d34a602
diff --git a/crates/openhuman-core/src/memory/display_name_and_vault_rpc_tests.rs b/crates/openhuman-core/src/memory/display_name_and_vault_rpc_tests.rsindex 03810f706c..306eef188f 100644--- a/crates/openhuman-core/src/memory/display_name_and_vault_rpc_tests.rs+++ b/crates/openhuman-core/src/memory/display_name_and_vault_rpc_tests.rs@@ -9,12 +9,25 @@ async fn read_chunk_row_returns_none_for_missing_chunk() {}#[test]-fn display_name_unslugs_email_thread_with_user_hint() {- let name = display_name_for_source(- "gmail:[email protected]|[email protected]",- Some("[email protected]"),- );- assert_eq!(name, "[email protected]");+fn display_name_unslugs_sources_for_display() {+ // (source id, user hint, expected display name)+ let cases = [+ (+ "gmail:[email protected]|[email protected]",+ Some("[email protected]"),+ "[email protected]",+ ),+ ("slack:#engineering", None, "#engineering"),+ (+ Some(" [email protected] "),+ ),+ ("loose-id", None, "loose-id"),+ ];+ for (source, hint, expected) in cases {+ assert_eq!(display_name_for_source(source, hint), expected, "{source}");+ }}#[test]@@ -25,28 +38,6 @@ fn display_name_falls_back_to_arrow_when_user_unknown() {assert!(name.contains("↔"));}-#[test]-fn display_name_strips_platform_prefix() {- assert_eq!(- display_name_for_source("slack:#engineering", None),- "#engineering"- );-}--#[test]-fn display_name_handles_multiple_participants_and_trimmed_hint() {- let name = display_name_for_source(- Some(" [email protected] "),- );- assert_eq!(name, "[email protected], [email protected]");-}--#[test]-fn display_name_handles_no_prefix() {- assert_eq!(display_name_for_source("loose-id", None), "loose-id");-}-#[test]fn sanitize_basename_replaces_windows_illegal_characters() {assert_eq!(diff --git a/crates/openhuman-core/src/memory/sync_events_bridge_tests.rs b/crates/openhuman-core/src/memory/sync_events_bridge_tests.rsindex bf8fe877f2..9277a3ddf5 100644--- a/crates/openhuman-core/src/memory/sync_events_bridge_tests.rs+++ b/crates/openhuman-core/src/memory/sync_events_bridge_tests.rs@@ -131,43 +131,31 @@ async fn memory_ingestion_started_emits_ingesting_stage() {// ── extract_mem_src_id tests ──────────────────────────────────────────#[test]-fn extract_mem_src_id_parses_simple_source() {- // "mem_src:<source_id>:<item_id>" → source_id- assert_eq!(- extract_mem_src_id("mem_src:src-abc-123:item-1"),- Some("src-abc-123")- );-}--#[test]-fn extract_mem_src_id_parses_item_id_with_colons_in_it() {- // item_id may contain colons (e.g. RSS GUIDs that are URLs).- // source_id is the first segment after "mem_src:"; item_id is everything after.- assert_eq!(- extract_mem_src_id("mem_src:src-rss-42:https://example.com/feed/item-7"),- Some("src-rss-42")- );- // Web-page item ids may also contain colons.- assert_eq!(- extract_mem_src_id("mem_src:src-web-99:https://blog.example.com/2024/post"),- Some("src-web-99")- );-}--#[test]-fn extract_mem_src_id_returns_none_for_non_mem_src() {- // Channel-provider syncs like "slack:workspace-1" have no mem_src prefix.- assert_eq!(extract_mem_src_id("slack:workspace-1"), None);- assert_eq!(extract_mem_src_id("gmail:alice-thread-1"), None);- assert_eq!(extract_mem_src_id("no-prefix"), None);-}--#[test]-fn extract_mem_src_id_returns_none_for_missing_item_id() {- // "mem_src:<source_id>" with no item_id separator is invalid.- assert_eq!(extract_mem_src_id("mem_src:source-only-no-item"), None);- // "mem_src:<source_id>:" with empty item_id is also invalid.- assert_eq!(extract_mem_src_id("mem_src:src-abc:"), None);+fn extract_mem_src_id_returns_the_source_segment_of_mem_src_ids() {+ // "mem_src:<source_id>:<item_id>" -> source_id. The item id may itself+ // contain colons (RSS GUIDs / URLs); only the first segment is the source.+ let cases = [+ // (input, expected)+ ("mem_src:src-abc-123:item-1", Some("src-abc-123")),+ (+ "mem_src:src-rss-42:https://example.com/feed/item-7",+ Some("src-rss-42"),+ ),+ (+ "mem_src:src-web-99:https://blog.example.com/2024/post",+ Some("src-web-99"),+ ),+ // Channel-provider syncs have no mem_src prefix.+ ("slack:workspace-1", None),+ ("gmail:alice-thread-1", None),+ ("no-prefix", None),+ // Missing / empty item id is invalid.+ ("mem_src:source-only-no-item", None),+ ("mem_src:src-abc:", None),+ ];+ for (input, expected) in cases {+ assert_eq!(extract_mem_src_id(input), expected, "{input}");+ }}// ── bridge populates source_id for Stored/Queued (DocumentCanonicalized) ──