message: added test case for error
diff: @@ -239,4 +239,15 @@ mod tests {
  assert_eq!(none_compression.decode(encoded).unwrap(), bytes);
  }
  +
  + #[test]
  + fn test_compression_encode_snappy_with_non_utf8() {
  + let lz4_compression = Compression::Lz4;
  + let bytes: Vec<u8> = vec![0x7f,0x7f,0x7f,0x7f,0x7f];
  + let encoded = lz4_compression.encode(bytes.clone()).unwrap();
  + let decode = lz4_compression.decode(encoded);
  + assert_eq!(decode.is_err(),true);
  + }
  +
  +
  }
  