-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add test to preserve API compatibility
- Loading branch information
Showing
23 changed files
with
227 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...c/tests/snapshots/rusqlite_migration__tests__asynch__convert_connection_closed_error.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
source: rusqlite_migration/src/tests/asynch.rs | ||
expression: "crate::Error::from(TError::ConnectionClosed)" | ||
--- | ||
ConnectionClosed |
8 changes: 8 additions & 0 deletions
8
...ration/src/tests/snapshots/rusqlite_migration__tests__asynch__convert_rusqlite_error.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
source: rusqlite_migration/src/tests/asynch.rs | ||
expression: "crate::Error::from(TError::Rusqlite(rusqlite::Error::InvalidQuery))" | ||
--- | ||
RusqliteError { | ||
query: "", | ||
err: InvalidQuery, | ||
} |
4 changes: 2 additions & 2 deletions
4
...lite_migration/src/tests/snapshots/rusqlite_migration__tests__synch__error_display-2.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
source: rusqlite_migration/src/tests/synch.rs | ||
expression: "Error::Hook(String::new())" | ||
expression: e | ||
--- | ||
rusqlite_migrate error: Hook("") | ||
rusqlite_migrate error: ConnectionClosed |
4 changes: 2 additions & 2 deletions
4
...lite_migration/src/tests/snapshots/rusqlite_migration__tests__synch__error_display-3.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
source: rusqlite_migration/src/tests/synch.rs | ||
expression: "Error::ForeignKeyCheck(vec![ForeignKeyCheckError\n {\n table : String :: new(), rowid : 1, parent : String :: new(), fkid\n : 2,\n }, ForeignKeyCheckError\n {\n table : String :: new(), rowid : 2, parent : String :: new(), fkid\n : 3,\n },])" | ||
expression: e | ||
--- | ||
rusqlite_migrate error: ForeignKeyCheck([ForeignKeyCheckError { table: "", rowid: 1, parent: "", fkid: 2 }, ForeignKeyCheckError { table: "", rowid: 2, parent: "", fkid: 3 }]) | ||
rusqlite_migrate error: SpecifiedSchemaVersion(TargetVersionOutOfRange { specified: NoneSet, highest: NoneSet }) |
4 changes: 2 additions & 2 deletions
4
...lite_migration/src/tests/snapshots/rusqlite_migration__tests__synch__error_display-5.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
source: rusqlite_migration/src/tests/synch.rs | ||
expression: "Error::RusqliteError {\n query: String::new(),\n err: rusqlite::Error::InvalidQuery,\n}" | ||
expression: e | ||
--- | ||
rusqlite_migrate error: RusqliteError { query: "", err: InvalidQuery } | ||
rusqlite_migrate error: ForeignKeyCheck([ForeignKeyCheckError { table: "t1", rowid: 1, parent: "t2", fkid: 2 }, ForeignKeyCheckError { table: "t3", rowid: 2, parent: "t4", fkid: 3 }]) |
5 changes: 5 additions & 0 deletions
5
...lite_migration/src/tests/snapshots/rusqlite_migration__tests__synch__error_display-6.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
source: rusqlite_migration/src/tests/synch.rs | ||
expression: e | ||
--- | ||
rusqlite_migrate error: Hook("in hook") |
5 changes: 5 additions & 0 deletions
5
...lite_migration/src/tests/snapshots/rusqlite_migration__tests__synch__error_display-7.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
source: rusqlite_migration/src/tests/synch.rs | ||
expression: e | ||
--- | ||
rusqlite_migrate error: FileLoad("file causing problem") |
5 changes: 5 additions & 0 deletions
5
...lite_migration/src/tests/snapshots/rusqlite_migration__tests__synch__error_display-8.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
source: rusqlite_migration/src/tests/synch.rs | ||
expression: e | ||
--- | ||
rusqlite_migrate error: Unrecognized(Hook("unknown")) |
4 changes: 2 additions & 2 deletions
4
rusqlite_migration/src/tests/snapshots/rusqlite_migration__tests__synch__error_display.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
source: rusqlite_migration/src/tests/synch.rs | ||
expression: "Error::SpecifiedSchemaVersion(SchemaVersionError::TargetVersionOutOfRange {\n specified: SchemaVersion::NoneSet,\n highest: SchemaVersion::NoneSet,\n })" | ||
expression: e | ||
--- | ||
rusqlite_migrate error: SpecifiedSchemaVersion(TargetVersionOutOfRange { specified: NoneSet, highest: NoneSet }) | ||
rusqlite_migrate error: RusqliteError { query: "SELECT * FROM table42;", err: InvalidQuery } |
5 changes: 5 additions & 0 deletions
5
rusqlite_migration/src/tests/snapshots/rusqlite_migration__tests__synch__error_source-2.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
source: rusqlite_migration/src/tests/synch.rs | ||
expression: e.source() | ||
--- | ||
None |
10 changes: 10 additions & 0 deletions
10
rusqlite_migration/src/tests/snapshots/rusqlite_migration__tests__synch__error_source-3.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
source: rusqlite_migration/src/tests/synch.rs | ||
expression: e.source() | ||
--- | ||
Some( | ||
TargetVersionOutOfRange { | ||
specified: NoneSet, | ||
highest: NoneSet, | ||
}, | ||
) |
7 changes: 7 additions & 0 deletions
7
rusqlite_migration/src/tests/snapshots/rusqlite_migration__tests__synch__error_source-4.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
source: rusqlite_migration/src/tests/synch.rs | ||
expression: e.source() | ||
--- | ||
Some( | ||
NoMigrationsDefined, | ||
) |
12 changes: 12 additions & 0 deletions
12
rusqlite_migration/src/tests/snapshots/rusqlite_migration__tests__synch__error_source-5.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
source: rusqlite_migration/src/tests/synch.rs | ||
expression: e.source() | ||
--- | ||
Some( | ||
ForeignKeyCheckError { | ||
table: "t1", | ||
rowid: 1, | ||
parent: "t2", | ||
fkid: 2, | ||
}, | ||
) |
5 changes: 5 additions & 0 deletions
5
rusqlite_migration/src/tests/snapshots/rusqlite_migration__tests__synch__error_source-6.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
source: rusqlite_migration/src/tests/synch.rs | ||
expression: e.source() | ||
--- | ||
None |
5 changes: 5 additions & 0 deletions
5
rusqlite_migration/src/tests/snapshots/rusqlite_migration__tests__synch__error_source-7.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
source: rusqlite_migration/src/tests/synch.rs | ||
expression: e.source() | ||
--- | ||
None |
9 changes: 9 additions & 0 deletions
9
rusqlite_migration/src/tests/snapshots/rusqlite_migration__tests__synch__error_source-8.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
source: rusqlite_migration/src/tests/synch.rs | ||
expression: e.source() | ||
--- | ||
Some( | ||
Hook( | ||
"unknown", | ||
), | ||
) |
7 changes: 7 additions & 0 deletions
7
rusqlite_migration/src/tests/snapshots/rusqlite_migration__tests__synch__error_source.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
source: rusqlite_migration/src/tests/synch.rs | ||
expression: e.source() | ||
--- | ||
Some( | ||
InvalidQuery, | ||
) |
18 changes: 18 additions & 0 deletions
18
...gration/src/tests/snapshots/rusqlite_migration__tests__synch__read_only_db_all_valid.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
source: rusqlite_migration/src/tests/synch.rs | ||
expression: e | ||
--- | ||
Err( | ||
RusqliteError { | ||
query: "CREATE TABLE m1(a, b); CREATE TABLE m2(a, b, c);", | ||
err: SqliteFailure( | ||
Error { | ||
code: ReadOnly, | ||
extended_code: 8, | ||
}, | ||
Some( | ||
"attempt to write a readonly database", | ||
), | ||
), | ||
}, | ||
) |
7 changes: 7 additions & 0 deletions
7
rusqlite_migration/src/tests/snapshots/rusqlite_migration__tests__synch__source.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
source: rusqlite_migration/src/tests/synch.rs | ||
expression: e.source() | ||
--- | ||
Some( | ||
InvalidQuery, | ||
) |
18 changes: 18 additions & 0 deletions
18
...e_migration/src/tests/snapshots/rusqlite_migration__tests__synch__user_version_error.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
source: rusqlite_migration/src/tests/synch.rs | ||
expression: e | ||
--- | ||
Err( | ||
RusqliteError { | ||
query: "PRAGMA user_version = 1; -- Approximate query", | ||
err: SqliteFailure( | ||
Error { | ||
code: ReadOnly, | ||
extended_code: 8, | ||
}, | ||
Some( | ||
"attempt to write a readonly database", | ||
), | ||
), | ||
}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters