mirror of
https://github.com/launchbadge/sqlx
synced 2024-11-10 06:24:16 +00:00
test(sqlite): add failing test to illustrate #231
This commit is contained in:
parent
72bd933e41
commit
b3fd720aad
1 changed files with 11 additions and 0 deletions
|
@ -37,6 +37,17 @@ async fn it_fails_to_parse() -> anyhow::Result<()> {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
#[cfg_attr(feature = "runtime-async-std", async_std::test)]
|
||||
#[cfg_attr(feature = "runtime-tokio", tokio::test)]
|
||||
async fn it_handles_empty_queries() -> anyhow::Result<()> {
|
||||
let mut conn = new::<Sqlite>().await?;
|
||||
let affected = conn.execute("").await?;
|
||||
|
||||
assert_eq!(affected, 0);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[cfg_attr(feature = "runtime-async-std", async_std::test)]
|
||||
#[cfg_attr(feature = "runtime-tokio", tokio::test)]
|
||||
async fn it_executes() -> anyhow::Result<()> {
|
||||
|
|
Loading…
Reference in a new issue