Skip to content

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

test(threads/ops): add unit tests for edit operations

Steven Enamakel01592bf15a4e
diff --git a/crates/openhuman-core/src/threads/ops/edit.rs b/crates/openhuman-core/src/threads/ops/edit.rs
index 2a5df2be85..50d92cd1d0 100644
--- a/crates/openhuman-core/src/threads/ops/edit.rs
+++ b/crates/openhuman-core/src/threads/ops/edit.rs
@@ -306,6 +306,10 @@ pub async fn regenerate(
))
}
+#[cfg(test)]
+#[path = "edit_tests.rs"]
+mod tests;
+
/// Scan a thread's message log (append order) for the first deterministic
/// assistant-reply id after `after_message_id`, and return the `request_id`
/// it was minted for. `Ok(None)` when `after_message_id` has no reply yet