diff options
Diffstat (limited to 'tests/schema_ownership.rs')
| -rw-r--r-- | tests/schema_ownership.rs | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/tests/schema_ownership.rs b/tests/schema_ownership.rs index dac93d6..07345dd 100644 --- a/tests/schema_ownership.rs +++ b/tests/schema_ownership.rs @@ -1,15 +1,3 @@ -//! The schema has one owner (§6 M-1). -//! -//! `db/` is a boundary, not a directory, only if SQL cannot land anywhere else. -//! Part of that is a compile-time fact: `Writer::call`, `tx` and `send` are -//! `pub(crate)`, and the raw door the test harness uses exists only under the -//! `test-support` feature. What the compiler cannot express is the other half — -//! that no module *inside* this crate writes a statement of its own. This does. -//! -//! The rule it enforces: a SQL statement, or a rusqlite statement call, appears -//! in `src/db/` and nowhere else. A module that needs the database asks `db/` -//! for a typed query; if the query does not exist, that is the change to make. - use std::path::{Path, PathBuf}; /// String literals that begin a statement. Matched on the quote so a prose @@ -73,11 +61,9 @@ fn no_sql_statements_outside_the_db_module() { } /// m-18: the version a human reads is `pkgver::full_version`'s to produce — -/// `epoch:pkgver-pkgrel`, with the epoch omitted when it is `0` or empty. That -/// rule used to exist twice, once in Rust and once as a `CASE WHEN epoch='0'` -/// inside `approved_but_unbuilt`, where a change to one would silently make the -/// Attention page disagree with every other page about what a version looks -/// like. SQL selects the parts; Rust formats them. +/// `epoch:pkgver-pkgrel`, with the epoch omitted when it is `0` or empty. That rule +/// used to exist twice, once in Rust and once in SQL. SQL selects the parts; Rust +/// formats them. #[test] fn only_rust_formats_a_version() { let root = Path::new(env!("CARGO_MANIFEST_DIR")); |
