Cambridge SMT System
hifst.task.grammar.gtest.cpp File Reference

Unit testing: grammar task testing. More...

#include <googletesting.h>
#include "main.custom_assert.hpp"
#include "main.logger.hpp"
#include "params.hpp"
#include "defs.grammar.hpp"
#include "addresshandler.hpp"
#include "taskinterface.hpp"
#include "data.stats.hpp"
#include "data.grammar.hpp"
#include "task.grammar.hpp"
Include dependency graph for hifst.task.grammar.gtest.cpp:

Go to the source code of this file.

Classes

struct  TaskData
 Trivial Data class with necessary variables for correct compilation. More...
 

Functions

 TEST (HifstGrammar, task)
 Tests through stringstream that the loading procedure is done correctly. TaskData is not really required for this test. More...
 
 TEST (HifstGrammar, data_grammar)
 
 TEST (HifstGrammar, getSize)
 getSize function More...
 
 TEST (HifstGrammar, isTerminal)
 
 TEST (HifstGrammar, getFilteredNonTerminal)
 
 TEST (HifstGrammar, nonterminalhierarchy)
 
int main (int argc, char **argv)
 

Detailed Description

Unit testing: grammar task testing.

Date
8-8-2012
Author
Gonzalo Iglesias

Definition in file hifst.task.grammar.gtest.cpp.

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 182 of file hifst.task.grammar.gtest.cpp.

TEST ( HifstGrammar  ,
task   
)

Tests through stringstream that the loading procedure is done correctly. TaskData is not really required for this test.

Definition at line 49 of file hifst.task.grammar.gtest.cpp.

Here is the call graph for this function:

TEST ( HifstGrammar  ,
data_grammar   
)

Definition at line 60 of file hifst.task.grammar.gtest.cpp.

Here is the call graph for this function:

TEST ( HifstGrammar  ,
getSize   
)

getSize function

Definition at line 108 of file hifst.task.grammar.gtest.cpp.

Here is the call graph for this function:

TEST ( HifstGrammar  ,
isTerminal   
)

Definition at line 118 of file hifst.task.grammar.gtest.cpp.

Here is the call graph for this function:

TEST ( HifstGrammar  ,
getFilteredNonTerminal   
)

Definition at line 124 of file hifst.task.grammar.gtest.cpp.

Here is the call graph for this function:

TEST ( HifstGrammar  ,
nonterminalhierarchy   
)

Definition at line 141 of file hifst.task.grammar.gtest.cpp.

Here is the call graph for this function: