aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/attribute/guard/attributeguard_test.cpp
blob: 513fa7406b6d2fe725103d449fbd971a1dec35ca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/searchlib/attribute/attributeguard.h>
#include <vespa/searchlib/attribute/extendableattributes.h>
#include <vespa/vespalib/gtest/gtest.h>

namespace search {

TEST(AttributeGuardTest, test_attribute_guard)
{
    AttributeVector::SP ssattr(new SingleStringExtAttribute("ss1"));
    AttributeGuard guard(ssattr);
    EXPECT_TRUE(guard.valid());
}

}

GTEST_MAIN_RUN_ALL_TESTS()