Skip to content

Commit

Permalink
fix: temporary::Directory -> Folder
Browse files Browse the repository at this point in the history
  • Loading branch information
kumavale committed Dec 31, 2024
1 parent eac4620 commit 5b2264c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions concatsql/src/sqlite/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,13 +364,13 @@ unsafe fn bind_all(stmt: *mut ffi::sqlite3_stmt, params: &[Value<'_>], error_lev
mod tests {
use crate as concatsql;
use concatsql::error::*;
use temporary::Directory;
use temporary::Folder;
#[cfg(debug_assertions)]
use concatsql::prep;

#[test]
fn open() {
let dir = Directory::new("sqlite").unwrap();
let dir = Folder::new("sqlite").unwrap();
let path = dir.path().join("test.db");
assert_ne!(crate::sqlite::open(""), crate::sqlite::open(""));
assert_ne!(crate::sqlite::open(":memory:"), crate::sqlite::open(":memory:"));
Expand Down
8 changes: 4 additions & 4 deletions concatsql/src/sqlite/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ pub fn version() -> usize {
mod tests {
use crate as concatsql;
use concatsql::prep;
use temporary::Directory;
use temporary::Folder;

#[test]
fn sqlite_open() {
let dir = Directory::new("sqlite").unwrap();
let dir = Folder::new("sqlite").unwrap();
let path = dir.path().join("test.db");
crate::sqlite::open(":memory:").unwrap();
crate::sqlite::open(path).unwrap();
Expand All @@ -65,7 +65,7 @@ mod tests {
fn sqlite_open_readonly() {
crate::sqlite::open_readonly(":memory:").unwrap();

let dir = Directory::new("sqlite").unwrap();
let dir = Folder::new("sqlite").unwrap();
let path = dir.path().join("test.db");
{
let conn = crate::sqlite::open(&path).unwrap();
Expand All @@ -78,7 +78,7 @@ mod tests {
#[cfg(debug_assertions)]
fn should_readonly() {
use crate::error::*;
let dir = Directory::new("sqlite").unwrap();
let dir = Folder::new("sqlite").unwrap();
let path = dir.path().join("test.db");
{
let conn = crate::sqlite::open(&path).unwrap();
Expand Down

0 comments on commit 5b2264c

Please sign in to comment.