summaryrefslogtreecommitdiffstats
path: root/searchsummary/src/tests/extractkeywords/extractkeywordstest.h
blob: e3c79bfc2023d2da33d3b21e7b6d7a7b1fbc57d4 (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
27
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <vespa/fastos/app.h>

namespace search::docsummary { class KeywordExtractor; }

class ExtractKeywordsTest : public FastOS_Application
{
private:
    ExtractKeywordsTest(const ExtractKeywordsTest &);
    ExtractKeywordsTest& operator=(const ExtractKeywordsTest &);

    search::docsummary::KeywordExtractor *_extractor;

    int Main() override;
    void Usage(char *progname);
    bool ShowResult(int testNo, const char *actual, const char *correct);
    bool RunTest(int i, bool verify);

public:
    ExtractKeywordsTest()
        : _extractor(nullptr)
    {}
};