#[cfg(test)]
#[cfg(feature = "lz4")]
mod tests {
    use crate::compression_engine::lz4::CompressionEngineLZ4;
    use crate::tests::common::test_helpers::test_compression_engine;

    #[test]
    fn test_compression_engine_lz4() {
        let test_data = b"test compression data";
        let engine = CompressionEngineLZ4 {};
        test_compression_engine(&engine, test_data);
    }

    #[test]
    fn test_compression_engine_lz4_large_data() {
        let test_data: Vec<u8> = (0..10000).map(|i| (i % 256) as u8).collect();
        let engine = CompressionEngineLZ4 {};
        test_compression_engine(&engine, &test_data);
    }
}
