#include <config.h>
#include "apitest.h"
#include <stdlib.h>
#include <iostream>
#include <string>
#include <vector>
#include <xapian.h>
#include "testsuite.h"
#include "testutils.h"
#include "backendmanager.h"
#include "backendmanager_flint.h"
#include "backendmanager_inmemory.h"
#include "backendmanager_multi.h"
#include "backendmanager_quartz.h"
#include "backendmanager_remoteprog.h"
#include "backendmanager_remotetcp.h"
#include "utils.h"
#include "api_all.h"
#include "api_collated.h"
Include dependency graph for apitest.cc:
Go to the source code of this file.
Defines | |
#define | USE_BACKEND(B, S) ((B).empty() || (B) == (S)) |
Functions | |
const char * | get_dbtype () |
Xapian::Database | get_database (const string &dbname) |
Xapian::Database | get_database (const string &dbname, const string &dbname2) |
Xapian::WritableDatabase | get_writable_database (const string &dbname) |
Xapian::WritableDatabase | get_named_writable_database (const std::string &name, const std::string &source) |
Xapian::Database | get_remote_database (const string &dbname, unsigned int timeout) |
Xapian::Database | get_writable_database_as_database () |
Xapian::WritableDatabase | get_writable_database_again () |
int | main (int argc, char **argv) |
Variables | |
static BackendManager * | backendmanager |
#define USE_BACKEND | ( | B, | |||
S | ) | ((B).empty() || (B) == (S)) |
const char* get_dbtype | ( | ) |
Definition at line 50 of file apitest.cc.
References backendmanager, and BackendManager::get_dbtype().
Referenced by DEFINE_TESTCASE().
Xapian::Database get_database | ( | const string & | dbname | ) |
Definition at line 56 of file apitest.cc.
References backendmanager, and BackendManager::get_database().
Referenced by DEFINE_TESTCASE(), and test_termlist3_helper().
Xapian::Database get_database | ( | const string & | dbname, | |
const string & | dbname2 | |||
) |
Definition at line 62 of file apitest.cc.
References backendmanager, and BackendManager::get_database().
Xapian::WritableDatabase get_writable_database | ( | const string & | dbname | ) |
Definition at line 71 of file apitest.cc.
References backendmanager, and BackendManager::get_writable_database().
Referenced by bigoaddvalue_helper(), DEFINE_TESTCASE(), and test_consistency2().
Xapian::WritableDatabase get_named_writable_database | ( | const std::string & | name, | |
const std::string & | source | |||
) |
Definition at line 77 of file apitest.cc.
References backendmanager, and BackendManager::get_writable_database().
Referenced by DEFINE_TESTCASE().
Xapian::Database get_remote_database | ( | const string & | dbname, | |
unsigned int | timeout | |||
) |
Definition at line 83 of file apitest.cc.
References backendmanager, and BackendManager::get_remote_database().
Referenced by DEFINE_TESTCASE().
Xapian::Database get_writable_database_as_database | ( | ) |
Definition at line 91 of file apitest.cc.
References backendmanager, and BackendManager::get_writable_database_as_database().
Referenced by DEFINE_TESTCASE().
Xapian::WritableDatabase get_writable_database_again | ( | ) |
Definition at line 97 of file apitest.cc.
References backendmanager, and BackendManager::get_writable_database_again().
Referenced by DEFINE_TESTCASE().
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 104 of file apitest.cc.
References test_driver::add_command_line_option(), backendmanager, test_driver::get_srcdir(), test_driver::parse_command_line(), BackendManager::set_datadir(), srcdir, and USE_BACKEND.
BackendManager* backendmanager [static] |
Definition at line 48 of file apitest.cc.
Referenced by get_database(), get_dbtype(), get_named_writable_database(), get_remote_database(), get_writable_database(), get_writable_database_again(), get_writable_database_as_database(), and main().