mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-12-23 08:21:09 +00:00
Move all checksum tests behind the feature flag
This commit is contained in:
parent
17a578a496
commit
ee479d2e52
1 changed files with 1 additions and 3 deletions
|
|
@ -94,6 +94,7 @@ impl Default for ChecksumContext {
|
|||
}
|
||||
|
||||
#[cfg(test)]
|
||||
#[cfg(feature = "checksum")]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
|
|
@ -110,7 +111,6 @@ mod tests {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(feature = "checksum")]
|
||||
fn test_add_checksum_to_page() {
|
||||
let ctx = ChecksumContext::new();
|
||||
let mut page = get_random_page();
|
||||
|
|
@ -139,7 +139,6 @@ mod tests {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(feature = "checksum")]
|
||||
fn test_verify_and_strip_checksum_mismatch() {
|
||||
let ctx = ChecksumContext::new();
|
||||
let mut page = get_random_page();
|
||||
|
|
@ -165,7 +164,6 @@ mod tests {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(feature = "checksum")]
|
||||
fn test_verify_and_strip_checksum_corrupted_checksum() {
|
||||
let ctx = ChecksumContext::new();
|
||||
let mut page = get_random_page();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue