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
test(runtime): cover channels component narrowing and disable errors
Steven Enamakel337f1982dce7
diff --git a/crates/openhuman-core/src/core/runtime/components_tests.rs b/crates/openhuman-core/src/core/runtime/components_tests.rsindex 543efccef8..cbd3d7eca7 100644--- a/crates/openhuman-core/src/core/runtime/components_tests.rs+++ b/crates/openhuman-core/src/core/runtime/components_tests.rs@@ -123,3 +123,25 @@ fn group_to_component_mapping_names_real_components() {}}}++#[test]+fn channels_on_never_widens_a_host_that_left_channels_out() {+ let mut host = DomainSet::full();+ host.channels = false;+ let mut services = ServiceSet::desktop();+ services.channels = false;+ let on = ComponentSet::all();+ assert!(!on.narrow_domains(host).channels);+ assert!(!on.narrow_services(services).channels);+}++#[test]+fn channels_off_names_the_typed_error_and_owns_the_channels_group() {+ let c = off("channels");+ let err = c.require("channels").unwrap_err();+ assert_eq!(err.message, "COMPONENT_DISABLED:channels");+ assert_eq!(+ ComponentSet::component_for_group(DomainGroup::Channels),+ Some("channels")+ );+}