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
refactor(tests): remove unnecessary HashMap in various tests
Steven Enamakel10e6221722f3
diff --git a/crates/openhuman-core/src/agent/session_host/transcript_compat_tests.rs b/crates/openhuman-core/src/agent/session_host/transcript_compat_tests.rsindex 2d709a3eb2..90e265cfe4 100644--- a/crates/openhuman-core/src/agent/session_host/transcript_compat_tests.rs+++ b/crates/openhuman-core/src/agent/session_host/transcript_compat_tests.rs@@ -570,7 +570,6 @@ fn assert_retired_tool_replay(identity_bound: bool) {&config.browser,&config.http_request,root.path(),- &std::collections::HashMap::new(),&config,);assert!(diff --git a/crates/openhuman-core/src/agent_registry/agents/fleet_prompt_tests.rs b/crates/openhuman-core/src/agent_registry/agents/fleet_prompt_tests.rsindex 5fb873b221..7d30df7bd7 100644--- a/crates/openhuman-core/src/agent_registry/agents/fleet_prompt_tests.rs+++ b/crates/openhuman-core/src/agent_registry/agents/fleet_prompt_tests.rs@@ -115,7 +115,6 @@ fn registered_tools() -> Vec<Box<dyn tinytools::Tool>> {&crate::config::BrowserConfig::default(),&crate::config::HttpRequestConfig::default(),tmp.path(),- &std::collections::HashMap::new(),&config,);toolsdiff --git a/crates/openhuman-core/src/tools/ops_tests.rs b/crates/openhuman-core/src/tools/ops_tests.rsindex af6327e419..41ddf6dc79 100644--- a/crates/openhuman-core/src/tools/ops_tests.rs+++ b/crates/openhuman-core/src/tools/ops_tests.rs@@ -70,7 +70,6 @@ fn integration_tools_for_config(tmp: &TempDir, cfg: &Config) -> Vec<Box<dyn Tool&browser,&http,tmp.path(),- &HashMap::new(),cfg,)}@@ -110,7 +109,6 @@ fn expansion_tools_for(tmp: &TempDir) -> Vec<Box<dyn Tool>> {&browser,&http,tmp.path(),- &HashMap::new(),&cfg,)}diff --git a/crates/openhuman-core/src/tools/ops_tests_capability_gating_tests.rs b/crates/openhuman-core/src/tools/ops_tests_capability_gating_tests.rsindex bed155bcef..08d32ef9bd 100644--- a/crates/openhuman-core/src/tools/ops_tests_capability_gating_tests.rs+++ b/crates/openhuman-core/src/tools/ops_tests_capability_gating_tests.rs@@ -299,7 +299,6 @@ fn memory_tool_is_registered_once_memory_is_on() {&browser,&http,tmp.path(),- &HashMap::new(),&cfg,);let names = tool_names(&tools);@@ -336,7 +335,6 @@ fn memory_tool_is_absent_when_the_memory_component_is_off() {&browser,&http,tmp.path(),- &HashMap::new(),&cfg,);let names = tool_names(&tools);diff --git a/crates/openhuman-core/src/tools/ops_tests_catalog_fixture_tests.rs b/crates/openhuman-core/src/tools/ops_tests_catalog_fixture_tests.rsindex a6f99b6b7a..91cdb421be 100644--- a/crates/openhuman-core/src/tools/ops_tests_catalog_fixture_tests.rs+++ b/crates/openhuman-core/src/tools/ops_tests_catalog_fixture_tests.rs@@ -122,7 +122,6 @@ fn full_tool_catalog_names() -> Vec<String> {&browser,&http,tmp.path(),- &HashMap::new(),&cfg,);diff --git a/crates/openhuman-core/src/tools/ops_tests_composio_registration_tests.rs b/crates/openhuman-core/src/tools/ops_tests_composio_registration_tests.rsindex ec28f54336..4cff40d3ba 100644--- a/crates/openhuman-core/src/tools/ops_tests_composio_registration_tests.rs+++ b/crates/openhuman-core/src/tools/ops_tests_composio_registration_tests.rs@@ -9,7 +9,6 @@ fn registry_names_for(cfg: &Config, tmp: &TempDir) -> Vec<String> {&BrowserConfig::default(),&crate::config::HttpRequestConfig::default(),tmp.path(),- &HashMap::new(),cfg,);tool_names(&tools)diff --git a/crates/openhuman-core/src/tools/ops_tests_default_registry_tests.rs b/crates/openhuman-core/src/tools/ops_tests_default_registry_tests.rsindex 0d14a80c78..f9b1dd7142 100644--- a/crates/openhuman-core/src/tools/ops_tests_default_registry_tests.rs+++ b/crates/openhuman-core/src/tools/ops_tests_default_registry_tests.rs@@ -14,7 +14,6 @@ fn all_tools_registers_the_memory_tool_while_memory_is_on() {&browser,&http,tmp.path(),- &HashMap::new(),&cfg,);@@ -58,7 +57,6 @@ fn whatsapp_data_tools_are_gone_in_every_build() {&browser,&http,tmp.path(),- &HashMap::new(),&cfg,);let names = tool_names(&tools);@@ -105,7 +103,6 @@ fn every_packed_tool_name_resolves_to_a_registered_tool() {&browser,&http,tmp.path(),- &HashMap::new(),&cfg,);let registered: std::collections::HashSet<&str> = tools.iter().map(|t| t.name()).collect();@@ -220,7 +217,6 @@ fn document_tools_registered_when_feature_on() {&browser,&http,tmp.path(),- &HashMap::new(),&cfg,);let names = tool_names(&tools);@@ -252,7 +248,6 @@ fn document_tools_absent_when_feature_off() {&browser,&http,tmp.path(),- &HashMap::new(),&cfg,);let names = tool_names(&tools);@@ -280,7 +275,6 @@ fn all_tools_registers_gitbooks_when_enabled() {&browser,&http,tmp.path(),- &HashMap::new(),&cfg,);let names: Vec<&str> = tools.iter().map(|t| t.name()).collect();@@ -369,7 +363,6 @@ fn all_tools_skips_gitbooks_when_disabled() {&browser,&http,tmp.path(),- &HashMap::new(),&cfg,);let names: Vec<&str> = tools.iter().map(|t| t.name()).collect();@@ -401,7 +394,6 @@ fn all_tools_default_registry_contains_expected_baseline_surface() {&browser,&http,tmp.path(),- &HashMap::new(),&cfg,);let names = tool_names(&tools);@@ -466,7 +458,6 @@ fn all_tools_default_registry_has_no_duplicate_tool_names() {&browser,&http,tmp.path(),- &HashMap::new(),&cfg,);let names = tool_names(&tools);@@ -498,7 +489,6 @@ fn all_tools_excludes_browser_when_disabled() {&browser,&http,tmp.path(),- &HashMap::new(),&cfg,);let names: Vec<&str> = tools.iter().map(|t| t.name()).collect();@@ -532,7 +522,6 @@ async fn document_tool_writes_into_the_configured_files_folder() {&browser,&http,tmp.path(),- &HashMap::new(),&cfg,);let tool = toolsdiff --git a/crates/openhuman-core/src/tools/ops_tests_execution_and_serde_tests.rs b/crates/openhuman-core/src/tools/ops_tests_execution_and_serde_tests.rsindex 23a323e910..880eb9b0b7 100644--- a/crates/openhuman-core/src/tools/ops_tests_execution_and_serde_tests.rs+++ b/crates/openhuman-core/src/tools/ops_tests_execution_and_serde_tests.rs@@ -22,7 +22,6 @@ fn all_tools_includes_browser_when_enabled() {&browser,&http,tmp.path(),- &HashMap::new(),&cfg,);let names: Vec<&str> = tools.iter().map(|t| t.name()).collect();@@ -59,7 +58,6 @@ fn computer_component_off_unregisters_desktop_and_browser_tools() {&browser,&http,tmp.path(),- &HashMap::new(),&cfg,);let names: Vec<&str> = tools.iter().map(|t| t.name()).collect();@@ -124,7 +122,6 @@ fn all_tools_registers_no_hosted_integration_families_without_a_tool_source() {&browser,&http,tmp.path(),- &HashMap::new(),&cfg,);let names = tool_names(&tools);@@ -185,7 +182,6 @@ fn all_tools_registers_brave_engine_when_enabled() {&browser,&http,tmp.path(),- &HashMap::new(),&cfg,);let names = tool_names(&tools);@@ -218,7 +214,6 @@ fn all_tools_registers_querit_as_the_search_role_when_enabled() {&browser,&http,tmp.path(),- &HashMap::new(),&cfg,);let names = tool_names(&tools);@@ -252,7 +247,6 @@ fn all_tools_omits_search_surface_when_search_is_disabled() {&browser,&http,tmp.path(),- &HashMap::new(),&cfg,);let names = tool_names(&tools);diff --git a/crates/openhuman-core/src/tools/ops_tests_repl_tools_tests.rs b/crates/openhuman-core/src/tools/ops_tests_repl_tools_tests.rsindex faff73d05c..ad4942f9ce 100644--- a/crates/openhuman-core/src/tools/ops_tests_repl_tools_tests.rs+++ b/crates/openhuman-core/src/tools/ops_tests_repl_tools_tests.rs@@ -19,7 +19,6 @@ fn registry_for(tmp: &TempDir, cfg: &Config) -> Vec<Box<dyn Tool>> {&browser,&crate::config::HttpRequestConfig::default(),tmp.path(),- &HashMap::new(),cfg,)}diff --git a/crates/openhuman-core/src/tools/sources_tests.rs b/crates/openhuman-core/src/tools/sources_tests.rsindex 0fa3bf8904..5cf1997c9c 100644--- a/crates/openhuman-core/src/tools/sources_tests.rs+++ b/crates/openhuman-core/src/tools/sources_tests.rs@@ -46,7 +46,6 @@ fn assemble(tmp: &TempDir) -> Vec<String> {&browser,&http,tmp.path(),- &HashMap::new(),&cfg,None,)diff --git a/crates/openhuman-core/src/tools/toolpacks/groups_tests.rs b/crates/openhuman-core/src/tools/toolpacks/groups_tests.rsindex 8676a8e05c..8414d9aa3c 100644--- a/crates/openhuman-core/src/tools/toolpacks/groups_tests.rs+++ b/crates/openhuman-core/src/tools/toolpacks/groups_tests.rs@@ -117,7 +117,6 @@ fn process_default_affects_registered_tools_without_a_core_context() {&browser,&http,std::path::Path::new("/tmp/openhuman-tool-groups"),- &std::collections::HashMap::new(),&config,)};