Skip to content

Commit

Permalink
test: add fs test for monoio & tokio uring
Browse files Browse the repository at this point in the history
  • Loading branch information
KKould committed Nov 12, 2024
1 parent 70e8d1a commit 70a3d0d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions fusio/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,28 @@ mod tests {
test_local_fs_copy_link(TokioFs, TokioFs).await.unwrap();
}

#[cfg(all(feature = "tokio-uring", target_os = "linux"))]
#[test]
async fn test_tokio_uring_fs() {
use crate::disk::tokio_uring::fs::TokioUringFs;

tokio_uring::start(async {
test_local_fs_read_write(TokioUringFs).await.unwrap();
test_local_fs_copy_link(TokioUringFs, TokioUringFs)
.await
.unwrap();
})
}

#[cfg(feature = "monoio")]
#[monoio::test]
async fn test_monoio_fs() {
use crate::disk::monoio::fs::MonoIoFs;

test_local_fs_read_write(MonoIoFs).await.unwrap();
test_local_fs_copy_link(MonoIoFs, MonoIoFs).await.unwrap();
}

#[cfg(feature = "tokio")]
#[tokio::test]
async fn test_read_exact() {
Expand Down

0 comments on commit 70a3d0d

Please sign in to comment.