tests/apitest.cc File Reference

#include <config.h>
#include "apitest.h"
#include "api_all.h"
#include "backendmanager.h"
#include "stringutils.h"
#include "testrunner.h"
#include "testsuite.h"
#include <xapian.h>
#include <string>
#include <vector>
#include "api_collated.h"

Include dependency graph for apitest.cc:

Go to the source code of this file.

Classes

class  ApiTestRunner

Functions

std::string get_dbtype ()
Xapian::Database get_database (const string &dbname)
Xapian::Database get_database (const string &dbname, const string &dbname2)
Xapian::Database get_database (const std::string &dbname, void(*gen)(Xapian::WritableDatabase &, const std::string &), const std::string &arg)
string get_database_path (const string &dbname)
string get_database_path (const std::string &dbname, void(*gen)(Xapian::WritableDatabase &, const std::string &), const std::string &arg)
Xapian::WritableDatabase get_writable_database (const string &dbname)
Xapian::WritableDatabase get_named_writable_database (const std::string &name, const std::string &source)
std::string get_named_writable_database_path (const std::string &name)
Xapian::Database get_remote_database (const string &dbname, unsigned int 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)
int main (int argc, char **argv)


Function Documentation

Xapian::Database get_database ( const std::string &  dbname,
void(*)(Xapian::WritableDatabase &, const std::string &)  gen,
const std::string &  arg 
)

Definition at line 62 of file apitest.cc.

References backendmanager, and BackendManager::get_database().

Xapian::Database get_database ( const string &  dbname,
const string &  dbname2 
)

Definition at line 53 of file apitest.cc.

References backendmanager, and BackendManager::get_database().

Xapian::Database get_database ( const string &  dbname  ) 

Definition at line 47 of file apitest.cc.

References backendmanager, and BackendManager::get_database().

Referenced by DEFINE_TESTCASE(), and test_termlist3_helper().

string get_database_path ( const std::string &  dbname,
void(*)(Xapian::WritableDatabase &, const std::string &)  gen,
const std::string &  arg 
)

Definition at line 77 of file apitest.cc.

References backendmanager, and BackendManager::get_database_path().

string get_database_path ( const string &  dbname  ) 

Definition at line 71 of file apitest.cc.

References backendmanager, and BackendManager::get_database_path().

Referenced by DEFINE_TESTCASE().

std::string get_dbtype (  ) 

Xapian::WritableDatabase get_named_writable_database ( const std::string &  name,
const std::string &  source 
)

Definition at line 92 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 98 of file apitest.cc.

References backendmanager, and BackendManager::get_writable_database_path().

Referenced by DEFINE_TESTCASE().

Xapian::Database get_remote_database ( const string &  dbname,
unsigned int  timeout 
)

Definition at line 104 of file apitest.cc.

References backendmanager, and BackendManager::get_remote_database().

Referenced by DEFINE_TESTCASE().

Xapian::WritableDatabase get_writable_database ( const string &  dbname  ) 

Definition at line 86 of file apitest.cc.

References backendmanager, and BackendManager::get_writable_database().

Referenced by bigoaddvalue1_helper(), and DEFINE_TESTCASE().

Xapian::WritableDatabase get_writable_database_again (  ) 

Definition at line 118 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 112 of file apitest.cc.

References backendmanager, and BackendManager::get_writable_database_as_database().

Referenced by DEFINE_TESTCASE().

int main ( int  argc,
char **  argv 
)

Definition at line 153 of file apitest.cc.

References TestRunner::run_tests().

void skip_test_for_backend ( const std::string &  backend_prefix  ) 

Definition at line 132 of file apitest.cc.

References get_dbtype(), SKIP_TEST, and startswith().

void skip_test_unless_backend ( const std::string &  backend_prefix  ) 

Definition at line 124 of file apitest.cc.

References get_dbtype(), SKIP_TEST, and startswith().


Documentation for Xapian (version 1.2.13).
Generated on 9 Jan 2013 by Doxygen 1.5.9.