aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/fef/test/mock_attribute_context.cpp
blob: a94a63f5c33b8fb5f8c0e7e0a8e0c38722597b42 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "mock_attribute_context.h"
#include "attribute_map.h"

namespace search::fef::test {

using IAttributeVector = attribute::IAttributeVector;

const IAttributeVector *
MockAttributeContext::getAttribute(const string & name) const {
    return _attributes.getAttribute(name);
}
const IAttributeVector *
MockAttributeContext::getAttributeStableEnum(const string & name) const {
    return getAttribute(name);
}
void
MockAttributeContext::getAttributeList(std::vector<const IAttributeVector *> & list) const {
    _attributes.getAttributeList(list);
}

void
MockAttributeContext::asyncForAttribute(const vespalib::string &, std::unique_ptr<attribute::IAttributeFunctor>) const {
}

}