diff options
author | Tor Egge <Tor.Egge@oath.com> | 2017-10-09 18:21:07 +0000 |
---|---|---|
committer | Tor Egge <Tor.Egge@oath.com> | 2017-10-09 18:21:07 +0000 |
commit | f2cd4cf637ae433341e6410145d3590e206889d3 (patch) | |
tree | 848d64bae50a09219d7ea9ed05e7730041b7a758 /vespalib/src/tests/objects/nbostream | |
parent | 943a63a1022d90cb16fd34cd1d39d8f6d5586503 (diff) |
Remove unused nbostream methods (only used by removed diskindex checkpointing).
Diffstat (limited to 'vespalib/src/tests/objects/nbostream')
-rw-r--r-- | vespalib/src/tests/objects/nbostream/nbostream_test.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/vespalib/src/tests/objects/nbostream/nbostream_test.cpp b/vespalib/src/tests/objects/nbostream/nbostream_test.cpp index f2e24f5acdc..8b9ccb8a848 100644 --- a/vespalib/src/tests/objects/nbostream/nbostream_test.cpp +++ b/vespalib/src/tests/objects/nbostream/nbostream_test.cpp @@ -201,22 +201,6 @@ TEST_F("Test serializing std::pair", Fixture) f.assertSerialize(exp, val); } -TEST_F("Test saveVector", Fixture) -{ - std::vector<int16_t> val({ 0x0123, 0x4567 }); - val.reserve(16); - ExpBuffer exp({ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, - 0x01, 0x23, 0x45, 0x67 }); - f._stream.saveVector(val); - EXPECT_EQUAL(exp, f._stream); - std::vector<int16_t> checkVal; - f._stream.restoreVector(checkVal); - EXPECT_EQUAL(val, checkVal); - EXPECT_EQUAL(val.capacity(), checkVal.capacity()); -} - - TEST_F("Test write", Fixture) { f._stream.write("Hello", 5); |