xapian-core  1.4.26
Classes | Functions | Variables
internaltest.cc File Reference

test of the Xapian internals More...

#include <config.h>
#include <xapian.h>
#include <iostream>
#include <string>
#include "autoptr.h"
#include "testsuite.h"
#include "testutils.h"
#include "pack.h"
#include "str.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
 

Functions

static void test_exception1 ()
 
static void test_refcnt1 ()
 
static void test_refcnt2 ()
 
static void test_autoptr1 ()
 
static void test_stringcomp1 ()
 
static void test_temporarydtor1 ()
 
static void test_pack_uint_preserving_sort1 ()
 Test pack_uint_preserving_sort() More...
 
static void test_pack_uint_preserving_sort2 ()
 Test C_pack_uint_preserving_sort() More...
 
static void test_chartype1 ()
 Test C_isupper() etc. More...
 
int main (int argc, char **argv)
 

Variables

static const test_desc tests []
 The lists of tests to perform. More...
 

Detailed Description

test of the Xapian internals

Definition in file internaltest.cc.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 580 of file internaltest.cc.

References test_driver::parse_command_line(), and test_driver::run().

◆ test_autoptr1()

static void test_autoptr1 ( )
static

Definition at line 158 of file internaltest.cc.

References TEST, and TEST_EQUAL.

◆ test_chartype1()

static void test_chartype1 ( )
static

◆ test_exception1()

static void test_exception1 ( )
static

Definition at line 48 of file internaltest.cc.

References TEST_EQUAL, and Test_Exception::value.

◆ test_pack_uint_preserving_sort1()

static void test_pack_uint_preserving_sort1 ( )
static

◆ test_pack_uint_preserving_sort2()

static void test_pack_uint_preserving_sort2 ( )
static

◆ test_refcnt1()

static void test_refcnt1 ( )
static

◆ test_refcnt2()

static void test_refcnt2 ( )
static

Definition at line 118 of file internaltest.cc.

References TEST_AND_EXPLAIN.

◆ test_stringcomp1()

static void test_stringcomp1 ( )
static

Definition at line 209 of file internaltest.cc.

References FAIL_TEST.

◆ test_temporarydtor1()

static void test_temporarydtor1 ( )
static

Definition at line 256 of file internaltest.cc.

References TempDtorTest::count, TempDtorTest::factory(), and TEST_EQUAL.

Variable Documentation

◆ tests

const test_desc tests[]
static
Initial value:
= {
TESTCASE(exception1),
TESTCASE(refcnt1),
TESTCASE(refcnt2),
TESTCASE(autoptr1),
TESTCASE(stringcomp1),
TESTCASE(temporarydtor1),
TESTCASE(pack_uint_preserving_sort1),
TESTCASE(pack_uint_preserving_sort2),
TESTCASE(chartype1),
{0, 0}
}
#define TESTCASE(T)
Definition: testmacros.h:28

The lists of tests to perform.

Definition at line 567 of file internaltest.cc.

Referenced by DEFINE_TESTCASE(), if(), and test_driver::result::reset().