xapian-core  1.4.26
Macros
testmacros.h File Reference

Macros for testing conditions hold. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEFINE_TESTCASE_(T)   static void test_##T()
 
#define TESTCASE(T)   { #T, test_##T }
 
#define END_OF_TESTCASES   { 0, 0 }
 
#define TEST_REL(A, REL, B)
 Test a relation holds,e.g. TEST_REL(a,>,b);. More...
 

Detailed Description

Macros for testing conditions hold.

Definition in file testmacros.h.

Macro Definition Documentation

◆ DEFINE_TESTCASE_

#define DEFINE_TESTCASE_ (   T)    static void test_##T()

Definition at line 27 of file testmacros.h.

◆ END_OF_TESTCASES

#define END_OF_TESTCASES   { 0, 0 }

Definition at line 29 of file testmacros.h.

◆ TEST_REL

#define TEST_REL (   A,
  REL,
  B 
)
Value:
"Evaluates to: " << (A) << " "#REL" " << (B))
Definition: unittest.cc:678
#define TEST_AND_EXPLAIN(a, b)
Test a condition, and display the test with an extra explanation if the condition fails...
Definition: testsuite.h:267
Definition: unittest.cc:668
const Xapian::Enquire::Internal::sort_setting REL
Definition: multimatch.cc:154

Test a relation holds,e.g. TEST_REL(a,>,b);.

Definition at line 32 of file testmacros.h.

Referenced by check_vals(), dbcheck(), DEFINE_TESTCASE(), CheckStatsWeight::get_sumpart(), qp_scale1_helper(), test_ioblock1(), test_pack_uint_preserving_sort1(), test_pack_uint_preserving_sort2(), test_scalability(), and test_uuid1().

◆ TESTCASE

#define TESTCASE (   T)    { #T, test_##T }

Definition at line 28 of file testmacros.h.