diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-08-29 21:23:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-29 21:23:58 +0200 |
commit | e451e225b13d42bc56edbd72426ee76dada35ac5 (patch) | |
tree | 2d09869260a45c823d82489b3fe8e35308dd7c9a /searchlib/src/tests/prettyfloat/prettyfloat.cpp | |
parent | 0f17d15350a11e991f4d477c9346d2788e22294f (diff) | |
parent | 241b24fb2467e3547cffa7c1056bd42f7952dd9f (diff) |
Merge pull request #23839 from vespa-engine/balder/gc-unused-rawbuf-codev8.44.22
GC unused RawBuf functionality
Diffstat (limited to 'searchlib/src/tests/prettyfloat/prettyfloat.cpp')
-rw-r--r-- | searchlib/src/tests/prettyfloat/prettyfloat.cpp | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/searchlib/src/tests/prettyfloat/prettyfloat.cpp b/searchlib/src/tests/prettyfloat/prettyfloat.cpp deleted file mode 100644 index a84ac59c964..00000000000 --- a/searchlib/src/tests/prettyfloat/prettyfloat.cpp +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include <vespa/log/log.h> -LOG_SETUP("prettyfloat_test"); -#include <vespa/vespalib/testkit/testapp.h> -#include <vespa/searchlib/util/rawbuf.h> -#include <vespa/searchlib/common/hitrank.h> - -using namespace search; - -TEST_SETUP(Test); - -int -Test::Main() -{ - TEST_INIT("prettyfloat_test"); - { - RawBuf buf(5000); - SignedHitRank rank = 10; - buf.addSignedHitRank(rank); - *buf.GetWritableFillPos() = '\0'; - EXPECT_EQUAL(std::string("10"), buf.GetDrainPos()); - } - { - RawBuf buf(5000); - HitRank rank = 10; - buf.addHitRank(rank); - *buf.GetWritableFillPos() = '\0'; - EXPECT_EQUAL(std::string("10"), buf.GetDrainPos()); - } - TEST_DONE(); -} |