Skip to content

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

test(core): add reportable fixture helper

Steven Enamakele80c9b440261
diff --git a/crates/openhuman-core/src/core/observability_tests.rs b/crates/openhuman-core/src/core/observability_tests.rs
index 65c26deeed..3e2842f9e2 100644
--- a/crates/openhuman-core/src/core/observability_tests.rs
+++ b/crates/openhuman-core/src/core/observability_tests.rs
@@ -89,6 +89,17 @@ fn register_backend_classifier_fixture(
.insert(message.to_string(), classification);
}
+fn reportable_fixture(kind: BackendErrorKind, malformed_bad_request: bool) -> BackendErrorClassification {
+ BackendErrorClassification {
+ provider_owned: true,
+ backend_owned: true,
+ reportable: true,
+ token: Some("fixture-reportable".to_string()),
+ kind: Some(kind),
+ malformed_bad_request,
+ }
+}
+
#[cfg(feature = "crash-reporting")]
fn event_with_tags_and_message(
pairs: &[(&str, &str)],