aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2024-02-16 10:51:06 +0100
committerTor Egge <Tor.Egge@online.no>2024-02-16 10:51:06 +0100
commitd3c9be50b71c4d03c9cace69ac5e48db0b4f98e0 (patch)
tree7e12ffa334485f3f5e7351327ff87cf2fd2ada6c /searchlib
parent296732b5d66e1383010b334cae4e9cd958c1baa9 (diff)
Style fixes for predicate attribute unit test.
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/tests/attribute/predicate_attribute/predicate_attribute_test.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/searchlib/src/tests/attribute/predicate_attribute/predicate_attribute_test.cpp b/searchlib/src/tests/attribute/predicate_attribute/predicate_attribute_test.cpp
index 077c5a7b455..a3466be5e0e 100644
--- a/searchlib/src/tests/attribute/predicate_attribute/predicate_attribute_test.cpp
+++ b/searchlib/src/tests/attribute/predicate_attribute/predicate_attribute_test.cpp
@@ -47,8 +47,7 @@ Config get_predicate_with_arity(uint32_t arity)
std::shared_ptr<AttributeVector>
make_attribute(vespalib::stringref name, const Config& cfg, bool setup)
{
- auto attribute = AttributeFactory::
- createAttribute(name, cfg);
+ auto attribute = AttributeFactory::createAttribute(name, cfg);
if (attribute && setup) {
attribute->addReservedDoc();
}
@@ -69,19 +68,14 @@ class PredicateAttributeTest : public ::testing::Test
{
protected:
PredicateAttributeTest();
- ~PredicateAttributeTest();
+ ~PredicateAttributeTest() override;
void SetUp() override;
void TearDown() override;
};
-PredicateAttributeTest::PredicateAttributeTest()
- : ::testing::Test()
-{
-}
+PredicateAttributeTest::PredicateAttributeTest() = default;
-PredicateAttributeTest::~PredicateAttributeTest()
-{
-}
+PredicateAttributeTest::~PredicateAttributeTest() = default;
void
PredicateAttributeTest::SetUp()