#include <config.h>
#include <xapian.h>
#include <float.h>
#include "safeerrno.h"
#include <string>
#include <list>
#include "autoptr.h"
#include "testsuite.h"
#include "testutils.h"
#include "serialise.h"
#include "serialise-double.h"
#include "omqueryinternal.h"
#include "utils.h"
Include dependency graph for internaltest.cc:
Go to the source code of this file.
Classes | |
class | Test_Exception |
class | test_refcnt |
class | test_autoptr |
struct | TempDtorTest |
Defines | |
#define | XAPIAN_DEPRECATED(D) D |
Functions | |
static bool | test_except1 () |
static bool | test_exception1 () |
static bool | test_refcnt1 () |
static bool | test_refcnt2 () |
static bool | test_autoptr1 () |
static bool | test_stringcomp1 () |
static bool | test_tostring1 () |
static bool | test_serialiselength1 () |
static bool | test_serialiselength2 () |
static void | check_double_serialisation (double u) |
static bool | test_serialisedouble1 () |
static bool | test_serialisedoc1 () |
static bool | test_serialisequery1 () |
static bool | test_serialiseerror1 () |
static bool | test_temporarydtor1 () |
int | main (int argc, char **argv) |
Variables | |
test_desc | tests [] |
The lists of tests to perform. |
#define XAPIAN_DEPRECATED | ( | D | ) | D |
Definition at line 27 of file internaltest.cc.
static bool test_except1 | ( | ) | [static] |
Definition at line 47 of file internaltest.cc.
static bool test_exception1 | ( | ) | [static] |
static bool test_refcnt1 | ( | ) | [static] |
Definition at line 102 of file internaltest.cc.
References Xapian::Internal::RefCntBase::ref_count, TEST_AND_EXPLAIN, and TEST_EQUAL.
static bool test_refcnt2 | ( | ) | [static] |
static bool test_autoptr1 | ( | ) | [static] |
Definition at line 163 of file internaltest.cc.
References AutoPtr< _Tp >::get(), TEST, and TEST_EQUAL.
static bool test_stringcomp1 | ( | ) | [static] |
static bool test_tostring1 | ( | ) | [static] |
static bool test_serialiselength1 | ( | ) | [static] |
Definition at line 256 of file internaltest.cc.
References decode_length(), encode_length(), TEST_EQUAL, and tout.
static bool test_serialiselength2 | ( | ) | [static] |
Definition at line 278 of file internaltest.cc.
References decode_length(), encode_length(), TEST, TEST_EQUAL, and TEST_EXCEPTION.
static void check_double_serialisation | ( | double | u | ) | [static] |
Definition at line 354 of file internaltest.cc.
References serialise_double(), TEST, TEST_EQUAL, tout, and unserialise_double().
Referenced by test_serialisedouble1().
static bool test_serialisedouble1 | ( | ) | [static] |
static bool test_serialisedoc1 | ( | ) | [static] |
Definition at line 405 of file internaltest.cc.
References Xapian::Document::add_term(), Xapian::Document::add_value(), serialise_document(), Xapian::Document::set_data(), TEST, and unserialise_document().
static bool test_serialisequery1 | ( | ) | [static] |
Definition at line 425 of file internaltest.cc.
References Xapian::Query::internal, Xapian::Query::OP_OR, Xapian::Query::OP_PHRASE, Xapian::Query::OP_SCALE_WEIGHT, query(), TEST, and Xapian::Query::Internal::unserialise().
static bool test_serialiseerror1 | ( | ) | [static] |
Definition at line 466 of file internaltest.cc.
References Xapian::Error::get_description(), Xapian::Error::get_errno(), Xapian::Error::get_error_string(), serialise_error(), TEST, TEST_EQUAL, TEST_STRINGS_EQUAL, and unserialise_error().
static bool test_temporarydtor1 | ( | ) | [static] |
Definition at line 520 of file internaltest.cc.
References TempDtorTest::count, TempDtorTest::factory(), and TEST_EQUAL.
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 554 of file internaltest.cc.
References test_driver::parse_command_line(), test_driver::run(), and tests.
Initial value:
{ {"except1", test_except1}, {"exception1", test_exception1}, {"refcnt1", test_refcnt1}, {"refcnt2", test_refcnt2}, {"autoptr1", test_autoptr1}, {"stringcomp1", test_stringcomp1}, {"temporarydtor1", test_temporarydtor1}, {"tostring1", test_tostring1}, {"serialisedouble1", test_serialisedouble1}, {"serialiselength1", test_serialiselength1}, {"serialiselength2", test_serialiselength2}, {"serialisedoc1", test_serialisedoc1}, {"serialisequery1", test_serialisequery1}, {"serialiseerror1", test_serialiseerror1}, {0, 0} }
Definition at line 534 of file internaltest.cc.