Skip to content

Commit

Permalink
add test for bind error size
Browse files Browse the repository at this point in the history
Signed-off-by: Runji Wang <[email protected]>
  • Loading branch information
wangrunji0408 committed Dec 23, 2024
1 parent 9e939f5 commit 87f0b30
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/binder/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,15 @@ mod tests {

use super::*;

#[test]
fn test_bind_error_size() {
assert_eq!(
std::mem::size_of::<BindError>(),
std::mem::size_of::<usize>(),
"the size of BindError should be one pointer"
);
}

#[test]
fn test_highlight_sql() {
let sql = "SELECT * FROM table WHERE id = 1";
Expand Down

0 comments on commit 87f0b30

Please sign in to comment.