//! The scaffolding every behavioural suite in THIS crate shares. //! //! ════════════════════════════════════════════════════════════════════════════ //! WHY THESE TESTS ARE HERE AND NOT IN `cotton-server` (design R8). //! //! The handlers live in this crate because the PHONE authors through them //! (design P3). Their behavioural suites used to live in `cotton-server`, //! which meant the crate the phone links was regression-tested only through a //! crate the phone never builds — so deleting `packages/server`, or any later //! change to the server's transport, could quietly take the tools' only //! coverage with it. They are here now, driving `dispatch::handler_for` over a //! FAKE `ToolServices` on a REAL store opened through `cotton-store`, and //! `cargo test -p cotton-tools` alone is the proof. //! //! WHAT STAYED IN THE SERVER: the TRANSPORT. Token minting and authentication, //! the JSON-RPC envelope, `prompts/*`, the audit row, the rate buckets and //! OAuth are `cotton_server::mcp::server`'s, and a suite about one of those is //! a suite about HTTP — it lives in `cotton-server/tests/`. //! ════════════════════════════════════════════════════════════════════════════ //! //! Declared as a module rather than a crate so each `tests/*.rs` binary can //! `mod support;` it — Cargo compiles one binary per file in `tests/`, and a //! bare `tests/support.rs` would be compiled as a test binary of its own. pub mod published; pub mod fakes; /// Minting a connection and calling a tool — the shape the server's own /// `support::mcp` has, so a suite reads the same on either side of the move. pub mod mcp; pub mod harness; // Re-exported for the suites that want them unqualified. `allow(unused_imports)` // because Cargo compiles this module once per test binary and each one uses a // different subset. #[allow(unused_imports)] pub use harness::{synthetic_uuid, Harness};