xapian-core
1.4.26
|
test functionality of the Xapian API More...
Go to the source code of this file.
Macros | |
#define | SKIP_TEST_UNLESS_BACKEND(B) skip_test_unless_backend(B) |
#define | SKIP_TEST_FOR_BACKEND(B) skip_test_for_backend(B) |
Functions | |
std::string | get_dbtype () |
Xapian::Database | get_database (const std::string &db) |
Xapian::Database | get_database (const std::string &db1, const std::string &db2) |
Xapian::Database | get_database (const std::string &db, void(*gen)(Xapian::WritableDatabase &, const std::string &), const std::string &arg=std::string()) |
std::string | get_database_path (const std::string &db) |
std::string | get_database_path (const std::string &db, void(*gen)(Xapian::WritableDatabase &, const std::string &), const std::string &arg=std::string()) |
Xapian::WritableDatabase | get_writable_database (const std::string &db=std::string()) |
Xapian::WritableDatabase | get_named_writable_database (const std::string &name, const std::string &source=std::string()) |
std::string | get_named_writable_database_path (const std::string &name) |
std::string | get_compaction_output_path (const std::string &name) |
Xapian::Database | get_remote_database (const std::string &db, unsigned timeout) |
Xapian::Database | get_writable_database_as_database () |
Xapian::WritableDatabase | get_writable_database_again () |
void | skip_test_unless_backend (const std::string &backend_prefix) |
void | skip_test_for_backend (const std::string &backend_prefix) |
void | XFAIL_FOR_BACKEND (const std::string &backend_prefix, const char *msg) |
#define SKIP_TEST_FOR_BACKEND | ( | B | ) | skip_test_for_backend(B) |
Definition at line 75 of file apitest.h.
Referenced by DEFINE_TESTCASE().
#define SKIP_TEST_UNLESS_BACKEND | ( | B | ) | skip_test_unless_backend(B) |
std::string get_compaction_output_path | ( | const std::string & | name | ) |
Definition at line 105 of file apitest.cc.
References backendmanager, and BackendManager::get_compaction_output_path().
Referenced by DEFINE_TESTCASE().
Xapian::Database get_database | ( | const std::string & | db | ) |
Definition at line 48 of file apitest.cc.
References backendmanager, and BackendManager::get_database().
Referenced by DEFINE_TESTCASE(), and test_termlist3_helper().
Xapian::Database get_database | ( | const std::string & | db1, |
const std::string & | db2 | ||
) |
Definition at line 54 of file apitest.cc.
References backendmanager, dbnames, and BackendManager::get_database().
Xapian::Database get_database | ( | const std::string & | db, |
void(*)(Xapian::WritableDatabase &, const std::string &) | gen, | ||
const std::string & | arg = std::string() |
||
) |
Definition at line 63 of file apitest.cc.
References backendmanager, gen, and BackendManager::get_database().
std::string get_database_path | ( | const std::string & | db | ) |
Definition at line 72 of file apitest.cc.
References backendmanager, and BackendManager::get_database_path().
Referenced by DEFINE_TESTCASE().
std::string get_database_path | ( | const std::string & | db, |
void(*)(Xapian::WritableDatabase &, const std::string &) | gen, | ||
const std::string & | arg = std::string() |
||
) |
Definition at line 78 of file apitest.cc.
References backendmanager, gen, and BackendManager::get_database_path().
std::string get_dbtype | ( | ) |
Definition at line 42 of file apitest.cc.
References backendmanager, and BackendManager::get_dbtype().
Referenced by DEFINE_TESTCASE(), BackendManager::get_remote_database(), BackendManager::get_remote_writable_database(), BackendManager::get_writable_database_again(), BackendManager::get_writable_database_args(), BackendManager::get_writable_database_path_again(), skip_test_for_backend(), skip_test_unless_backend(), and XFAIL_FOR_BACKEND().
Xapian::WritableDatabase get_named_writable_database | ( | const std::string & | name, |
const std::string & | source = std::string() |
||
) |
Definition at line 93 of file apitest.cc.
References backendmanager, and BackendManager::get_writable_database().
Referenced by DEFINE_TESTCASE().
std::string get_named_writable_database_path | ( | const std::string & | name | ) |
Definition at line 99 of file apitest.cc.
References backendmanager, and BackendManager::get_writable_database_path().
Referenced by DEFINE_TESTCASE().
Xapian::Database get_remote_database | ( | const std::string & | db, |
unsigned | timeout | ||
) |
Xapian::WritableDatabase get_writable_database | ( | const std::string & | db = std::string() | ) |
Definition at line 87 of file apitest.cc.
References backendmanager, and BackendManager::get_writable_database().
Referenced by bigoaddvalue1_helper(), DEFINE_TESTCASE(), BackendManager::get_database(), and BackendManager::get_generated_database().
Xapian::WritableDatabase get_writable_database_again | ( | ) |
Definition at line 125 of file apitest.cc.
References backendmanager, and BackendManager::get_writable_database_again().
Referenced by DEFINE_TESTCASE().
Xapian::Database get_writable_database_as_database | ( | ) |
Definition at line 119 of file apitest.cc.
References backendmanager, and BackendManager::get_writable_database_as_database().
Referenced by DEFINE_TESTCASE().
void skip_test_for_backend | ( | const std::string & | backend_prefix | ) |
Definition at line 139 of file apitest.cc.
References get_dbtype(), SKIP_TEST, and startswith().
void skip_test_unless_backend | ( | const std::string & | backend_prefix | ) |
Definition at line 131 of file apitest.cc.
References get_dbtype(), SKIP_TEST, and startswith().
void XFAIL_FOR_BACKEND | ( | const std::string & | backend_prefix, |
const char * | msg | ||
) |
Definition at line 147 of file apitest.cc.
References get_dbtype(), startswith(), and XFAIL().
Referenced by DEFINE_TESTCASE().