test(agent): add comprehensive loop test suite

This commit is contained in:
Chummy 2026-02-18 00:08:39 +08:00
parent 8051c06756
commit ed675d4e6b
2 changed files with 1272 additions and 15 deletions

View file

@ -5,22 +5,10 @@ pub mod loop_;
pub mod memory_loader;
pub mod prompt;
#[cfg(test)]
mod tests;
#[allow(unused_imports)]
pub use agent::{Agent, AgentBuilder};
#[allow(unused_imports)]
pub use loop_::{process_message, run};
#[cfg(test)]
mod tests {
use super::*;
fn assert_reexport_exists<F>(_value: F) {}
#[test]
fn run_function_is_reexported() {
assert_reexport_exists(run);
assert_reexport_exists(process_message);
assert_reexport_exists(loop_::run);
assert_reexport_exists(loop_::process_message);
}
}

1269
src/agent/tests.rs Normal file

File diff suppressed because it is too large Load diff