Skip to main content

Crate toasty_driver_integration_suite

Crate toasty_driver_integration_suite 

Source

Modules§

scenarios
stmt
Expression utilities for testing with assert_struct!
tests
Test implementations

Macros§

assert_eq_unordered
generate_driver_tests

Structs§

DriverOp
InstrumentedDriver
Test-only driver wrapper that instruments an underlying driver: it records every operation for later assertion and can inject faults (connection loss, etc.) to exercise error-handling paths.
InstrumentedHandle
Single control handle for the InstrumentedDriver test middleware. Exposes both the operation log (for assertions) and the fault queue (for injecting failures). Cheaply cloneable; every clone refers to the same shared state.
Test
Wraps the Tokio runtime and ensures cleanup happens.
TestResult

Enums§

Fault
A fault that can be injected into the next operation routed through the driver. Faults are consumed in FIFO order: each exec call pops at most one fault off the queue before delegating (or short-circuiting past) the underlying driver.

Traits§

Setup

Functions§

column
Helper function to get a single ColumnId for specified table and column
columns
Helper function to generate a Vec<ColumnId> for specified table and columns
pop_filter
Pop the next logged op (a read) and return its filter predicate, normalizing SQL (QuerySql select) vs key-value (Scan) ops.
pop_insert
Pop the next logged op (a create) and return column index -> inserted value, normalizing SQL (QuerySql) vs key-value (Insert) ops and inlining bound params. Useful for asserting exactly what an INSERT writes.
pop_update
Pop the next logged op (an update) and return column index -> assigned value, normalizing SQL (QuerySql) vs key-value (UpdateByKey) ops and inlining bound params.
table_id
Helper function to look up TableId by table name (handles database-specific prefixes)