#include <sstream>
#include <fstream>
#include <string>
#include <list>
#include <boost/filesystem.hpp>
#include <boost/test/unit_test.hpp>
#include <opentrep/basic/OTransliterator.hpp>
#include <opentrep/bom/QuerySlices.hpp>
#include <opentrep/basic/BasConst_OPENTREP_Service.hpp>
#include <opentrep/OPENTREP_Service.hpp>
#include <opentrep/service/Logger.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 ("/tmp/opentrep/test_traveldb") |
const std::string | X_SQL_DB_STR ("") |
const OPENTREP::DeploymentNumber_T | X_DEPLOYMENT_NUMBER (0) |
BOOST_GLOBAL_FIXTURE (UnitTestConfig) | |
BOOST_AUTO_TEST_CASE (slice_small_string) | |
#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.
std::ofstream utfReportStream | ( | "SliceTestSuite_utfresults.xml" | ) |
const std::string X_XAPIAN_DB_FP | ( | "/tmp/opentrep/test_traveldb" | ) |
Xapian database/index file-path (directory containing the index).
Referenced by BOOST_AUTO_TEST_CASE().
const std::string X_SQL_DB_STR | ( | "" | ) |
SQL database connection string.
Referenced by BOOST_AUTO_TEST_CASE().
const OPENTREP::DeploymentNumber_T X_DEPLOYMENT_NUMBER | ( | 0 | ) |
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 81 of file SliceTestSuite.cpp.
References BOOST_AUTO_TEST_CASE(), OPENTREP::QuerySlices::describe(), OPENTREP::DBType::NODB, OPENTREP_LOG_DEBUG, OPENTREP::QuerySlices::size(), X_DEPLOYMENT_NUMBER(), X_SQL_DB_STR(), and X_XAPIAN_DB_FP().