Skip to content

Commit

Permalink
Move ReadBufPool to tests directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomasdezeeuw committed Jan 25, 2025
1 parent d72dbe7 commit 98f61cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/io/read_buf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -414,9 +414,3 @@ impl Drop for ReadBuf {
self.release();
}
}

#[test]
fn size_assertion() {
assert_eq!(std::mem::size_of::<ReadBufPool>(), 8);
assert_eq!(std::mem::size_of::<ReadBuf>(), 24);
}
6 changes: 6 additions & 0 deletions tests/async_fd/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ fn try_clone() {
assert_eq!(&buf.data, DATA);
}

#[test]
fn read_buf_pool_size_assertion() {
assert_eq!(std::mem::size_of::<ReadBufPool>(), 8);
assert_eq!(std::mem::size_of::<ReadBuf>(), 24);
}

#[test]
fn read_read_buf_pool() {
require_kernel!(5, 19);
Expand Down

0 comments on commit 98f61cf

Please sign in to comment.