style: format the whole tree with cargo fmt (stock defaults, #35)
One-time, mechanical reformat — no functional changes. The tree was not rustfmt-clean (~1800 hunks across ~100 files); this brings it to stock `cargo fmt` defaults so a `cargo fmt --check` CI gate can follow. Behaviour-preserving: 2509 pass / 0 fail / 1 ignored (unchanged baseline), clippy clean. A .git-blame-ignore-revs entry follows so `git blame` skips this commit.
This commit is contained in:
@@ -28,10 +28,7 @@ fn one_n_relationship_keyword_sequence_is_incomplete() {
|
||||
#[test]
|
||||
fn after_from_offers_table_names() {
|
||||
let schema = schema_multi_table();
|
||||
let a = assess_at_end(
|
||||
"add 1:n relationship from ",
|
||||
&schema,
|
||||
);
|
||||
let a = assess_at_end("add 1:n relationship from ", &schema);
|
||||
assert!(matches!(a.state, InputState::IncompleteAtEof));
|
||||
assert_candidate_present(&a, &["Customers", "Orders"]);
|
||||
crate::snap!("after_from", a);
|
||||
@@ -41,10 +38,7 @@ fn after_from_offers_table_names() {
|
||||
fn after_parent_table_dot_narrows_to_parent_columns() {
|
||||
// §2.2 follow-up — `from Customers.` narrows to Customers.
|
||||
let schema = schema_multi_table();
|
||||
let a = assess_at_end(
|
||||
"add 1:n relationship from Customers.",
|
||||
&schema,
|
||||
);
|
||||
let a = assess_at_end("add 1:n relationship from Customers.", &schema);
|
||||
assert!(matches!(a.state, InputState::IncompleteAtEof));
|
||||
assert_candidate_present(&a, &["id", "Name"]);
|
||||
assert_no_candidate_named(&a, &["OrderId", "CustId", "Total"]);
|
||||
@@ -54,10 +48,7 @@ fn after_parent_table_dot_narrows_to_parent_columns() {
|
||||
#[test]
|
||||
fn after_child_table_dot_narrows_to_child_columns() {
|
||||
let schema = schema_multi_table();
|
||||
let a = assess_at_end(
|
||||
"add 1:n relationship from Customers.id to Orders.",
|
||||
&schema,
|
||||
);
|
||||
let a = assess_at_end("add 1:n relationship from Customers.id to Orders.", &schema);
|
||||
assert!(matches!(a.state, InputState::IncompleteAtEof));
|
||||
assert_candidate_present(&a, &["OrderId", "CustId", "Total"]);
|
||||
assert_no_candidate_named(&a, &["Name"]);
|
||||
@@ -101,10 +92,7 @@ fn add_relationship_with_on_delete_clause_parses() {
|
||||
#[test]
|
||||
fn add_relationship_in_progress_after_dot_is_incomplete() {
|
||||
let schema = schema_multi_table();
|
||||
let a = assess_at_end(
|
||||
"add 1:n relationship from Customers.id to ",
|
||||
&schema,
|
||||
);
|
||||
let a = assess_at_end("add 1:n relationship from Customers.id to ", &schema);
|
||||
assert!(matches!(a.state, InputState::IncompleteAtEof));
|
||||
crate::snap!("in_progress_after_to", a);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user