1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! Internal test suite for `wasm-smtp`.
//!
//! These tests exercise every layer of the crate that does not require
//! a real network. They live in-tree (rather than under the `tests/`
//! integration-test directory at the crate root) so they can reach
//! `pub(crate)` items and module-private helpers without inflating the
//! public API surface.
//!
//! Module overview:
//!
//! - [`harness`] — `MockTransport` and small shared utilities.
//! - [`protocol_tests`] — reply parsing, command formatting,
//! dot-stuffing, base64, validators, capability inspection.
//! - [`session_tests`] — `SessionState` transitions.
//! - [`error_tests`] — public error surface.
//! - [`client_tests`] — full SMTP exchange against the mock transport.
//! - [`smtputf8_tests`] — feature-gated SMTPUTF8 (RFC 6531).
//!
//! There is no executor: the mock transport always resolves immediately,
//! so a no-op waker is sufficient to drive the futures.