pub struct EngineTests {
pub env: EngineEnv,
pub events: EngineEvents,
pub state: EngineState,
}Expand description
Test engine ready to execute queries. Created via EngineTests::builder().
Fields§
§env: EngineEnvStatic configuration: hosts, models, log level.
events: EngineEventsLifecycle callbacks: on_start, on_run, on_stop, on_log.
state: EngineStateRuntime state: home dir, child processes, timing.
Implementations§
Source§impl EngineTests
impl EngineTests
Sourcepub async fn init(&mut self) -> TestsResult<()>
pub async fn init(&mut self) -> TestsResult<()>
Initialize infrastructure: compose up, on_start, health check.
Sourcepub async fn test(&self, query: &str) -> TestResult
pub async fn test(&self, query: &str) -> TestResult
Runs a single test query against the MCP server via LLM across all models.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EngineTests
impl !RefUnwindSafe for EngineTests
impl Send for EngineTests
impl !Sync for EngineTests
impl Unpin for EngineTests
impl UnsafeUnpin for EngineTests
impl !UnwindSafe for EngineTests
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more