mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-27 04:54:21 +01:00
Move all checksum tests behind the feature flag
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user