Skip to content

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

test(core): add legacy controller test helper

Steven Enamakel13c9f9705dfb
diff --git a/crates/openhuman-core/src/core/all.rs b/crates/openhuman-core/src/core/all.rs
index ee6e466980..f4e512f539 100644
--- a/crates/openhuman-core/src/core/all.rs
+++ b/crates/openhuman-core/src/core/all.rs
@@ -156,6 +156,7 @@ impl ControllerEntry {
}
}
+ #[cfg(test)]
fn legacy_controller(&self) -> Option<RegisteredController> {
match &self.handler {
EntryHandler::Legacy(handler) => Some(RegisteredController {