Cambridge SMT System
|
test-specific classes and functions More...
Classes | |
class | DataForReferenceFilter |
Public class with variables required by TextTask to compile and run. More... | |
struct | DataForStats |
Public class with variables required by TextTask to compile and run. More... | |
class | DataTest1 |
Trivial data class with three bool variables. More... | |
class | DataTest2 |
Trivial data class, now contains unsigned and vector<unsigned>. More... | |
struct | functor_test |
struct | functor_test2 |
class | PostEditTask |
This is a test to show how an imaginary postedit class could work. The class would contain a pointer to the whole hifst system A single run of PostEditTask may kickoff several times the decoder. More... | |
struct | PostProTaskData |
struct | PreProTaskData |
struct | RemoveWeight |
class | Task1 |
Trivial task class implementing run method to modify first bool variable. More... | |
class | Task2 |
Trivial task class implementing run method to modify second bool variable. More... | |
class | Task2b |
Trivial task class implementing run method to modify second bool variable. Additionally, signals that execution is to stop after finishing with Task2b. More... | |
class | Task3 |
Trivial task class implementing run method to modify third bool variable. More... | |
class | Task4 |
Trivial task class, implements run to modify DataTest2. More... | |
Functions | |
TEST (FstIo, basic_test) | |
TEST (HifstPostPro, basic_test) | |
TEST (hifstpostpro, deletesentencemarkers) | |
Testing function deleteSentenceMarkers. More... | |
TEST (HifstPrePro, basic_test) | |
TEST (stringutil, addsentencemarkers) | |
Test to validate addSentenceMarkers. More... | |
TEST (HifstReferenceFilter, basic_test) | |
Basic test for ReferenceFilterTask class. Tests the whole pipeline. More... | |
TEST (HifstReferenceFilter, empty) | |
Basic test for ReferenceFilterTask class. Tests the whole pipeline. More... | |
TEST (HifstStatsTask, basic_test) | |
Basic test for stats task – just write simple message and speed stats. More... | |
TEST (TaskInterface, chainoftasks1) | |
Tests chainoftasks implementation in taskinterface. Three objects are appended Each of them modifies a single bool. The three should get executed so all bool variables are set to true. More... | |
TEST (TaskInterface, chainoftasks2) | |
Tests chainoftasks implementation in taskinterface. Three objects are appended Each of them modifies a single bool. The three should get executed so all bool variables are set to true. More... | |
TEST (TaskInterface, chainoftasks3) | |
Test that the functor works well appending tasks. More... | |
TEST (TaskInterface, chainoftasks4) | |
Test the introduction of a NULL in the chain of tasks. Task1 should point directly to task3 and hence both tasks get executed. More... | |
TEST (TaskInterface, idx) | |
Test. As datatest not renewed, therefore we can accumulate information from a task on subsequent runs. vector<unsigned> should contain all k indices. More... | |
TEST (TaskInterface, idx_chainrun) | |
Test. Task Class encapsulating another task(s). Executes twice for each index k – vector<unsigned> contains repeated k values. More... | |
test-specific classes and functions
googletesting::TEST | ( | FstIo | , |
basic_test | |||
) |
Basic test for input/output enhanced fst operations Create an vector/const fst, write to compressed binary format, read back and test that both fsts are equivalent.
Definition at line 38 of file fstio.gtest.cpp.
googletesting::TEST | ( | HifstStatsTask | , |
basic_test | |||
) |
Basic test for stats task – just write simple message and speed stats.
Definition at line 53 of file hifst.task.stats.gtest.cpp.
googletesting::TEST | ( | HifstPostPro | , |
basic_test | |||
) |
Basic test for PostProcessing: unmap to words and detokenize (english) Skipped as detokenization not implemented
Definition at line 63 of file hifst.task.postpro.gtest.cpp.
googletesting::TEST | ( | HifstReferenceFilter | , |
basic_test | |||
) |
Basic test for ReferenceFilterTask class. Tests the whole pipeline.
Definition at line 65 of file hifst.task.referencefilter.gtest.cpp.
googletesting::TEST | ( | HifstPrePro | , |
basic_test | |||
) |
Basic test for prepro task Tokenization not implemented.
Definition at line 67 of file hifst.task.prepro.gtest.cpp.
googletesting::TEST | ( | TaskInterface | , |
chainoftasks1 | |||
) |
Tests chainoftasks implementation in taskinterface. Three objects are appended Each of them modifies a single bool. The three should get executed so all bool variables are set to true.
Definition at line 76 of file taskinterface.gtest.cpp.
googletesting::TEST | ( | stringutil | , |
addsentencemarkers | |||
) |
Test to validate addSentenceMarkers.
Definition at line 100 of file hifst.task.prepro.gtest.cpp.
googletesting::TEST | ( | TaskInterface | , |
chainoftasks2 | |||
) |
Tests chainoftasks implementation in taskinterface. Three objects are appended Each of them modifies a single bool. The three should get executed so all bool variables are set to true.
Definition at line 102 of file taskinterface.gtest.cpp.
googletesting::TEST | ( | TaskInterface | , |
chainoftasks3 | |||
) |
Test that the functor works well appending tasks.
Definition at line 116 of file taskinterface.gtest.cpp.
googletesting::TEST | ( | HifstReferenceFilter | , |
empty | |||
) |
Basic test for ReferenceFilterTask class. Tests the whole pipeline.
Definition at line 117 of file hifst.task.referencefilter.gtest.cpp.
googletesting::TEST | ( | hifstpostpro | , |
deletesentencemarkers | |||
) |
Testing function deleteSentenceMarkers.
Definition at line 118 of file hifst.task.postpro.gtest.cpp.
googletesting::TEST | ( | TaskInterface | , |
chainoftasks4 | |||
) |
Test the introduction of a NULL in the chain of tasks. Task1 should point directly to task3 and hence both tasks get executed.
Definition at line 131 of file taskinterface.gtest.cpp.
googletesting::TEST | ( | TaskInterface | , |
idx | |||
) |
Test. As datatest not renewed, therefore we can accumulate information from a task on subsequent runs. vector<unsigned> should contain all k indices.
Definition at line 163 of file taskinterface.gtest.cpp.
googletesting::TEST | ( | TaskInterface | , |
idx_chainrun | |||
) |
Test. Task Class encapsulating another task(s). Executes twice for each index k – vector<unsigned> contains repeated k values.
Definition at line 203 of file taskinterface.gtest.cpp.