Skip to content

Commit e5ff9c1

Browse files
Derive Arbitrary for the types added on main
1 parent c68b79b commit e5ff9c1

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎src/ast/ddl.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2980,6 +2980,7 @@ impl fmt::Display for CreateIndex {
29802980
#[derive(Debug, Copy, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
29812981
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
29822982
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
2983+
#[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))]
29832984
pub enum SqliteTableOption {
29842985
/// `WITHOUT ROWID`
29852986
WithoutRowid,
@@ -3000,6 +3001,7 @@ impl fmt::Display for SqliteTableOption {
30003001
#[derive(Debug, Default, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
30013002
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
30023003
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
3004+
#[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))]
30033005
pub struct SqliteTableOptions {
30043006
/// Whether a comma separates the list from the column definitions,
30053007
/// as in `(a INT), STRICT`.

‎src/ast/dml.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ use super::{
4444
#[derive(Debug, Copy, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
4545
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
4646
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
47+
#[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))]
4748
pub enum InsertOverriding {
4849
/// `OVERRIDING SYSTEM VALUE`
4950
System,

0 commit comments

Comments
 (0)