diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2021-11-10 11:09:04 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2021-11-10 11:37:54 +0000 |
commit | 518a7e7e470f1c0f792dd9e9fd36b23359b31048 (patch) | |
tree | c253ccfc4cab67d389bf6c64fbb27301c8d6e10d /document/src/tests/serialization/vespadocumentserializer_test.cpp | |
parent | 8efde630ff73357e0f31a34f131a120d327bf224 (diff) |
remove support for compression of document content in backend.
Diffstat (limited to 'document/src/tests/serialization/vespadocumentserializer_test.cpp')
-rw-r--r-- | document/src/tests/serialization/vespadocumentserializer_test.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/document/src/tests/serialization/vespadocumentserializer_test.cpp b/document/src/tests/serialization/vespadocumentserializer_test.cpp index fc5dd2c110a..443c7d1885a 100644 --- a/document/src/tests/serialization/vespadocumentserializer_test.cpp +++ b/document/src/tests/serialization/vespadocumentserializer_test.cpp @@ -44,6 +44,7 @@ #include <vespa/vespalib/objects/nbostream.h> #include <vespa/vespalib/testkit/testapp.h> #include <vespa/document/base/exceptions.h> +#include <vespa/vespalib/util/compressionconfig.h> using document::DocumenttypesConfig; using vespalib::File; @@ -488,21 +489,11 @@ TEST("requireThatUncompressedStructFieldValueCanBeSerialized") { checkStructSerialization(value, CompressionConfig::NONE); } -TEST("requireThatCompressedStructFieldValueCanBeSerialized") { - StructDataType structType(getStructDataType()); - StructFieldValue value = getStructFieldValue(structType); - const_cast<StructDataType *>(static_cast<const StructDataType *>(value.getDataType())) - ->setCompressionConfig(CompressionConfig(CompressionConfig::LZ4, 0, 95)); - checkStructSerialization(value, CompressionConfig::LZ4); -} - TEST("requireThatReserializationIsUnompressedIfUnmodified") { StructDataType structType(getStructDataType()); StructFieldValue value = getStructFieldValue(structType); - const_cast<StructDataType *>(static_cast<const StructDataType *>(value.getDataType())) - ->setCompressionConfig(CompressionConfig(CompressionConfig::LZ4, 0, 95)); - TEST_DO(checkStructSerialization(value, CompressionConfig::LZ4)); + TEST_DO(checkStructSerialization(value, CompressionConfig::NONE)); nbostream os; VespaDocumentSerializer serializer(os); @@ -512,7 +503,7 @@ TEST("requireThatReserializationIsUnompressedIfUnmodified") { StructFieldValue value2(struct_type); VespaDocumentDeserializer deserializer(repo, os, serialization_version); deserializer.read(value2); - TEST_DO(checkStructSerialization(value, CompressionConfig::LZ4)); + TEST_DO(checkStructSerialization(value, CompressionConfig::NONE)); // Lazy serialization of structs.... TEST_DO(checkStructSerialization(value2, CompressionConfig::NONE)); EXPECT_EQUAL(value, value2); |