aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/test/index/mock_field_length_inspector.h
blob: 3b8e549f94d14d6edf0f79cc0e9ecdb221d199e5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <vespa/searchlib/index/i_field_length_inspector.h>

namespace search::index::test {

/**
 * Mock of IFieldLengthInspector returning empty field info for all fields.
 */
class MockFieldLengthInspector : public IFieldLengthInspector {
    FieldLengthInfo get_field_length_info(const vespalib::string& field_name) const override {
        (void) field_name;
        return FieldLengthInfo();
    }
};

}