ModErn Text Analysis
META Enumerates Textual Applications
inverted_index_test.h
Go to the documentation of this file.
1 
10 #ifndef META_INVERTED_INDEX_TEST_H_
11 #define META_INVERTED_INDEX_TEST_H_
12 
13 #include <fstream>
14 #include <iostream>
15 #include "test/unit_test.h"
16 #include "index/inverted_index.h"
17 #include "index/postings_data.h"
18 #include "caching/all.h"
19 #include "cpptoml.h"
20 
21 namespace meta
22 {
23 namespace testing
24 {
29 void create_config(const std::string& corpus_type);
30 
35 template <class Index>
36 void check_ceeaus_expected(Index& idx);
37 
42 template <class Index>
43 void check_term_id(Index& idx);
44 
50 }
51 }
52 
53 #endif
void check_ceeaus_expected(Index &idx)
Checks that ceeaus index was built correctly.
Definition: inverted_index_test.cpp:64
void check_term_id(Index &idx)
Checks that the term info is consistent with the correct one.
Definition: inverted_index_test.cpp:87
int inverted_index_tests()
Runs the inverted index tests.
Definition: inverted_index_test.cpp:105
The ModErn Text Analysis toolkit is a suite of natural language processing, classification, information retreival, data mining, and other applications of text processing.
Definition: analyzer.h:24
void create_config(const std::string &corpus_type)
Creates test-config.toml with the desired settings.
Definition: inverted_index_test.cpp:13