xapian-core  2.0.0
Classes | Functions
api_sorting.cc File Reference

tests of MSet sorting More...

#include <config.h>
#include "api_sorting.h"
#include <xapian.h>
#include "apitest.h"
#include "testutils.h"
+ Include dependency graph for api_sorting.cc:

Go to the source code of this file.

Classes

class  NeverUseMeKeyMaker
 

Functions

 DEFINE_TESTCASE (sortfunctor1, backend)
 
 DEFINE_TESTCASE (sortfunctor2, backend)
 Test reverse sort functor. More...
 
 DEFINE_TESTCASE (sortfunctor3, valuestats)
 
 DEFINE_TESTCASE (changesorter1, backend &&!remote)
 Regression test for changing away from a sorter. More...
 
 DEFINE_TESTCASE (sortfunctorempty1, backend)
 Regression test - an empty MultiValueSorter hung in 1.0.9 and earlier. More...
 
 DEFINE_TESTCASE (multivaluekeymaker1, !backend)
 
 DEFINE_TESTCASE (sortfunctorremote1, remote)
 
 DEFINE_TESTCASE (replace_weights1, backend)
 
 DEFINE_TESTCASE (replace_weights2, backend)
 
 DEFINE_TESTCASE (sort_existing_mset_by_relevance, backend)
 

Detailed Description

tests of MSet sorting

Definition in file api_sorting.cc.

Function Documentation

◆ DEFINE_TESTCASE() [1/10]

DEFINE_TESTCASE ( changesorter1  ,
backend &&!  remote 
)

◆ DEFINE_TESTCASE() [2/10]

DEFINE_TESTCASE ( multivaluekeymaker1  ,
backend 
)

◆ DEFINE_TESTCASE() [3/10]

DEFINE_TESTCASE ( replace_weights1  ,
backend   
)

◆ DEFINE_TESTCASE() [4/10]

DEFINE_TESTCASE ( replace_weights2  ,
backend   
)

◆ DEFINE_TESTCASE() [5/10]

DEFINE_TESTCASE ( sort_existing_mset_by_relevance  ,
backend   
)

◆ DEFINE_TESTCASE() [6/10]

DEFINE_TESTCASE ( sortfunctor1  ,
backend   
)

◆ DEFINE_TESTCASE() [7/10]

DEFINE_TESTCASE ( sortfunctor2  ,
backend   
)

◆ DEFINE_TESTCASE() [8/10]

DEFINE_TESTCASE ( sortfunctor3  ,
valuestats   
)

◆ DEFINE_TESTCASE() [9/10]

DEFINE_TESTCASE ( sortfunctorempty1  ,
backend   
)

Regression test - an empty MultiValueSorter hung in 1.0.9 and earlier.

Definition at line 295 of file api_sorting.cc.

References get_database(), Xapian::Enquire::get_mset(), mset_expect_order(), Xapian::Enquire::set_query(), and Xapian::Enquire::set_sort_by_key().

◆ DEFINE_TESTCASE() [10/10]

DEFINE_TESTCASE ( sortfunctorremote1  ,
remote   
)