-
-
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
27 changed files
with
234 additions
and
53 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, | ||
} |
5 changes: 0 additions & 5 deletions
5
...lite_migration/src/tests/snapshots/rusqlite_migration__tests__synch__error_display-2.snap
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...lite_migration/src/tests/snapshots/rusqlite_migration__tests__synch__error_display-3.snap
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...lite_migration/src/tests/snapshots/rusqlite_migration__tests__synch__error_display-5.snap
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
rusqlite_migration/src/tests/snapshots/rusqlite_migration__tests__synch__error_display.snap
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
...gration/src/tests/snapshots/rusqlite_migration__tests__synch__error_display_number_0.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: RusqliteError { query: "SELECT * FROM table42;", err: InvalidQuery } |
5 changes: 5 additions & 0 deletions
5
...gration/src/tests/snapshots/rusqlite_migration__tests__synch__error_display_number_1.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: SpecifiedSchemaVersion(TargetVersionOutOfRange { specified: NoneSet, highest: NoneSet }) |
2 changes: 1 addition & 1 deletion
2
...ation__tests__synch__error_display-4.snap → ...tests__synch__error_display_number_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::MigrationDefinition(MigrationDefinitionError::NoMigrationsDefined)" | ||
expression: e | ||
--- | ||
rusqlite_migrate error: MigrationDefinition(NoMigrationsDefined) |
5 changes: 5 additions & 0 deletions
5
...gration/src/tests/snapshots/rusqlite_migration__tests__synch__error_display_number_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,5 @@ | ||
--- | ||
source: rusqlite_migration/src/tests/synch.rs | ||
expression: e | ||
--- | ||
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
...gration/src/tests/snapshots/rusqlite_migration__tests__synch__error_display_number_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,5 @@ | ||
--- | ||
source: rusqlite_migration/src/tests/synch.rs | ||
expression: e | ||
--- | ||
rusqlite_migrate error: Hook("in hook") |
5 changes: 5 additions & 0 deletions
5
...gration/src/tests/snapshots/rusqlite_migration__tests__synch__error_display_number_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,5 @@ | ||
--- | ||
source: rusqlite_migration/src/tests/synch.rs | ||
expression: e | ||
--- | ||
rusqlite_migrate error: FileLoad("file causing problem") |
5 changes: 5 additions & 0 deletions
5
...gration/src/tests/snapshots/rusqlite_migration__tests__synch__error_display_number_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: Unrecognized(Hook("unknown")) |
5 changes: 5 additions & 0 deletions
5
...gration/src/tests/snapshots/rusqlite_migration__tests__synch__error_display_number_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: ConnectionClosed |
7 changes: 7 additions & 0 deletions
7
...igration/src/tests/snapshots/rusqlite_migration__tests__synch__error_source_number_0.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, | ||
) |
10 changes: 10 additions & 0 deletions
10
...igration/src/tests/snapshots/rusqlite_migration__tests__synch__error_source_number_1.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
...igration/src/tests/snapshots/rusqlite_migration__tests__synch__error_source_number_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,7 @@ | ||
--- | ||
source: rusqlite_migration/src/tests/synch.rs | ||
expression: e.source() | ||
--- | ||
Some( | ||
NoMigrationsDefined, | ||
) |
12 changes: 12 additions & 0 deletions
12
...igration/src/tests/snapshots/rusqlite_migration__tests__synch__error_source_number_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,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
...igration/src/tests/snapshots/rusqlite_migration__tests__synch__error_source_number_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,5 @@ | ||
--- | ||
source: rusqlite_migration/src/tests/synch.rs | ||
expression: e.source() | ||
--- | ||
None |
5 changes: 5 additions & 0 deletions
5
...igration/src/tests/snapshots/rusqlite_migration__tests__synch__error_source_number_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,5 @@ | ||
--- | ||
source: rusqlite_migration/src/tests/synch.rs | ||
expression: e.source() | ||
--- | ||
None |
9 changes: 9 additions & 0 deletions
9
...igration/src/tests/snapshots/rusqlite_migration__tests__synch__error_source_number_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,9 @@ | ||
--- | ||
source: rusqlite_migration/src/tests/synch.rs | ||
expression: e.source() | ||
--- | ||
Some( | ||
Hook( | ||
"unknown", | ||
), | ||
) |
5 changes: 5 additions & 0 deletions
5
...igration/src/tests/snapshots/rusqlite_migration__tests__synch__error_source_number_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 |
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", | ||
), | ||
), | ||
}, | ||
) |
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