//! Entities shared by the integration tests. Each test file uses part of
//! them only.
use MockDb;
/// Run `run`, in which a statement must fail, and return the plain-text
/// messages of the problems `mock` then reports (see `MockError::problems`).
///
/// The failing statement panics with a diagnostic that may be in color, so
/// tests assert on these messages instead. `run` is spawned as a task, so
/// that its panic fails the task rather than the test.
pub async