tests/unittest.cc File Reference

Unit tests of non-Xapian-specific internal code. More...

#include <config.h>
#include <iostream>
#include "../common/fileutils.cc"

Include dependency graph for unittest.cc:

Go to the source code of this file.

Defines

#define TEST_EQUAL(A, B)

Functions

string r_r_p (string a, const string &b)
static bool test_resolverelativepath1 ()
int main ()


Detailed Description

Unit tests of non-Xapian-specific internal code.

Definition in file unittest.cc.


Define Documentation

#define TEST_EQUAL ( A,
 ) 

Value:

do {\
    const string & test_equal_a = (A);\
    const string & test_equal_b = (B);\
    if (test_equal_a != test_equal_b) {\
        cout << test_equal_a << " != " << test_equal_b << endl;\
        return false;\
    }\
} while (0)

Definition at line 36 of file unittest.cc.


Function Documentation

int main (  ) 

Definition at line 127 of file unittest.cc.

References test_resolverelativepath1().

string r_r_p ( string  a,
const string &  b 
) [inline]

Definition at line 46 of file unittest.cc.

References resolve_relative_path().

Referenced by test_resolverelativepath1().

static bool test_resolverelativepath1 (  )  [static]

Definition at line 52 of file unittest.cc.

References r_r_p(), and TEST_EQUAL.

Referenced by main().


Documentation for Xapian (version 1.2.9).
Generated on 10 May 2012 by Doxygen 1.5.9.