mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-25 02:21:37 +08:00
Add unrelated test
just to keep code coverage the same
This commit is contained in:
parent
87d81cd46b
commit
8675e453f3
13
src/lib.rs
13
src/lib.rs
@ -1494,7 +1494,7 @@ mod test {
|
||||
|
||||
#[test]
|
||||
#[cfg(feature = "extra_check")]
|
||||
fn test_execute_select() {
|
||||
fn test_execute_select_with_no_row() {
|
||||
let db = checked_memory_handle();
|
||||
let err = db.execute("SELECT 1 WHERE 1 < ?1", [1i32]).unwrap_err();
|
||||
assert_eq!(
|
||||
@ -1504,6 +1504,17 @@ mod test {
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_execute_select_with_row() {
|
||||
let db = checked_memory_handle();
|
||||
let err = db.execute("SELECT 1", []).unwrap_err();
|
||||
assert_eq!(
|
||||
err,
|
||||
Error::ExecuteReturnedResults,
|
||||
"Unexpected error: {err}"
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(feature = "extra_check")]
|
||||
fn test_execute_multiple() {
|
||||
|
Loading…
Reference in New Issue
Block a user