@@ -6663,7 +6663,10 @@ fn parse_foreign_key_match_full() {
6663
6663
match & columns[ 0 ] . options [ 1 ] . option {
6664
6664
ColumnOption :: ForeignKey ( constraint) => {
6665
6665
assert_eq ! ( constraint. foreign_table. to_string( ) , "another_table" ) ;
6666
- assert_eq ! ( constraint. match_kind, Some ( ConstraintReferenceMatchKind :: Full ) ) ;
6666
+ assert_eq ! (
6667
+ constraint. match_kind,
6668
+ Some ( ConstraintReferenceMatchKind :: Full )
6669
+ ) ;
6667
6670
}
6668
6671
_ => panic ! ( "Expected ColumnOption::ForeignKey" ) ,
6669
6672
}
@@ -6672,7 +6675,10 @@ fn parse_foreign_key_match_full() {
6672
6675
match & constraints[ 0 ] {
6673
6676
TableConstraint :: ForeignKey ( constraint) => {
6674
6677
assert_eq ! ( constraint. foreign_table. to_string( ) , "customers" ) ;
6675
- assert_eq ! ( constraint. match_kind, Some ( ConstraintReferenceMatchKind :: Full ) ) ;
6678
+ assert_eq ! (
6679
+ constraint. match_kind,
6680
+ Some ( ConstraintReferenceMatchKind :: Full )
6681
+ ) ;
6676
6682
}
6677
6683
_ => panic ! ( "Expected TableConstraint::ForeignKey" ) ,
6678
6684
}
@@ -6696,7 +6702,10 @@ fn parse_foreign_key_match_simple() {
6696
6702
match & columns[ 0 ] . options [ 1 ] . option {
6697
6703
ColumnOption :: ForeignKey ( constraint) => {
6698
6704
assert_eq ! ( constraint. foreign_table. to_string( ) , "another_table" ) ;
6699
- assert_eq ! ( constraint. match_kind, Some ( ConstraintReferenceMatchKind :: Simple ) ) ;
6705
+ assert_eq ! (
6706
+ constraint. match_kind,
6707
+ Some ( ConstraintReferenceMatchKind :: Simple )
6708
+ ) ;
6700
6709
}
6701
6710
_ => panic ! ( "Expected ColumnOption::ForeignKey" ) ,
6702
6711
}
@@ -6705,7 +6714,10 @@ fn parse_foreign_key_match_simple() {
6705
6714
match & constraints[ 0 ] {
6706
6715
TableConstraint :: ForeignKey ( constraint) => {
6707
6716
assert_eq ! ( constraint. foreign_table. to_string( ) , "customers" ) ;
6708
- assert_eq ! ( constraint. match_kind, Some ( ConstraintReferenceMatchKind :: Simple ) ) ;
6717
+ assert_eq ! (
6718
+ constraint. match_kind,
6719
+ Some ( ConstraintReferenceMatchKind :: Simple )
6720
+ ) ;
6709
6721
}
6710
6722
_ => panic ! ( "Expected TableConstraint::ForeignKey" ) ,
6711
6723
}
@@ -6728,15 +6740,21 @@ fn parse_foreign_key_match_partial() {
6728
6740
match & columns[ 0 ] . options [ 1 ] . option {
6729
6741
ColumnOption :: ForeignKey ( constraint) => {
6730
6742
assert_eq ! ( constraint. foreign_table. to_string( ) , "another_table" ) ;
6731
- assert_eq ! ( constraint. match_kind, Some ( ConstraintReferenceMatchKind :: Partial ) ) ;
6743
+ assert_eq ! (
6744
+ constraint. match_kind,
6745
+ Some ( ConstraintReferenceMatchKind :: Partial )
6746
+ ) ;
6732
6747
}
6733
6748
_ => panic ! ( "Expected ColumnOption::ForeignKey" ) ,
6734
6749
}
6735
6750
6736
6751
match & constraints[ 0 ] {
6737
6752
TableConstraint :: ForeignKey ( constraint) => {
6738
6753
assert_eq ! ( constraint. foreign_table. to_string( ) , "customers" ) ;
6739
- assert_eq ! ( constraint. match_kind, Some ( ConstraintReferenceMatchKind :: Partial ) ) ;
6754
+ assert_eq ! (
6755
+ constraint. match_kind,
6756
+ Some ( ConstraintReferenceMatchKind :: Partial )
6757
+ ) ;
6740
6758
}
6741
6759
_ => panic ! ( "Expected TableConstraint::ForeignKey" ) ,
6742
6760
}
0 commit comments