ModErn Text Analysis
META Enumerates Textual Applications
forward_index_test.h
Go to the documentation of this file.
1 
10 #ifndef META_FORWARD_INDEX_TEST_H_
11 #define META_FORWARD_INDEX_TEST_H_
12 
13 #include <fstream>
14 #include <iostream>
15 #include "test/unit_test.h"
16 #include "index/forward_index.h"
17 #include "test/inverted_index_test.h" // for config file creation
18 #include "caching/all.h"
19 #include "cpptoml.h"
20 
21 namespace meta
22 {
23 namespace testing
24 {
29 
34 template <class Index>
35 void check_bcancer_expected(Index& idx);
36 
41 template <class Index>
42 void check_ceeaus_expected_fwd(Index& idx);
43 
48 template <class Index>
49 void check_bcancer_doc_id(Index& idx);
50 
55 template <class Index>
56 void check_ceeaus_doc_id(Index& idx);
57 
61 void ceeaus_forward_test();
62 
67 
73 }
74 }
75 
76 #endif
void create_libsvm_config()
Creates a test-config.toml with the desired settings.
Definition: forward_index_test.cpp:13
void check_bcancer_expected(Index &idx)
Asserts that the bcancer corpus was created correctly.
Definition: forward_index_test.cpp:29
void check_ceeaus_doc_id(Index &idx)
Asserts that the ceeaus corpus was created correctly.
Definition: forward_index_test.cpp:84
void check_ceeaus_expected_fwd(Index &idx)
Asserts that the bcancer corpus was created correctly.
Definition: forward_index_test.cpp:46
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 bcancer_forward_test()
Runs the bcancer forward index tests.
Definition: forward_index_test.cpp:108
int forward_index_tests()
Runs all the forward_index tests.
Definition: forward_index_test.cpp:116
void check_bcancer_doc_id(Index &idx)
Asserts that the ceeaus corpus was created correctly.
Definition: forward_index_test.cpp:67
void ceeaus_forward_test()
Runs the ceeaus forward index tests.
Definition: forward_index_test.cpp:100