OpenTREP Logo  0.6.0
C++ Open Travel Request Parsing Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SliceTestSuite.cpp File Reference
#include <sstream>
#include <fstream>
#include <string>
#include <list>
#include <boost/filesystem.hpp>
#include <boost/test/unit_test.hpp>
#include <opentrep/bom/QuerySlices.hpp>
#include <opentrep/basic/BasConst_OPENTREP_Service.hpp>
#include <opentrep/OPENTREP_Service.hpp>

Go to the source code of this file.

Classes

struct  UnitTestConfig
 

Macros

#define BOOST_TEST_DYN_LINK
 
#define BOOST_TEST_MAIN
 
#define BOOST_TEST_MODULE   SliceTestSuite
 

Functions

std::ofstream utfReportStream ("SliceTestSuite_utfresults.xml")
 
const std::string X_XAPIAN_DB_FP (OPENTREP::DEFAULT_OPENTREP_XAPIAN_DB_FILEPATH)
 
const std::string X_SQLITE_DB_FP (OPENTREP::DEFAULT_OPENTREP_SQLITE_DB_FILEPATH)
 
 BOOST_GLOBAL_FIXTURE (UnitTestConfig)
 
 BOOST_AUTO_TEST_CASE (slice_small_string)
 

Macro Definition Documentation

#define BOOST_TEST_DYN_LINK

Definition at line 17 of file SliceTestSuite.cpp.

#define BOOST_TEST_MAIN

Definition at line 18 of file SliceTestSuite.cpp.

#define BOOST_TEST_MODULE   SliceTestSuite

Definition at line 19 of file SliceTestSuite.cpp.

Function Documentation

std::ofstream utfReportStream ( "SliceTestSuite_utfresults.xml"  )
const std::string X_XAPIAN_DB_FP ( OPENTREP::DEFAULT_OPENTREP_XAPIAN_DB_FILEPATH  )

Xapian database/index file-path (directory containing the index).

Referenced by BOOST_AUTO_TEST_CASE().

const std::string X_SQLITE_DB_FP ( OPENTREP::DEFAULT_OPENTREP_SQLITE_DB_FILEPATH  )

SQlite3 database file-path.

Referenced by BOOST_AUTO_TEST_CASE().

BOOST_GLOBAL_FIXTURE ( UnitTestConfig  )
BOOST_AUTO_TEST_CASE ( slice_small_string  )

Test the sliceing algorithm with a small string

Definition at line 71 of file SliceTestSuite.cpp.

References OPENTREP::QuerySlices::size(), X_SQLITE_DB_FP(), and X_XAPIAN_DB_FP().