xapian-core  1.4.21
Classes | Functions
api_matchspy.cc File Reference

tests of MatchSpy usage More...

#include <config.h>
#include "api_matchspy.h"
#include <xapian.h>
#include <cmath>
#include <map>
#include <vector>
#include "backendmanager.h"
#include "str.h"
#include "testsuite.h"
#include "testutils.h"
#include "apitest.h"
+ Include dependency graph for api_matchspy.cc:

Go to the source code of this file.

Classes

class  SimpleMatchSpy
 
class  MySpy
 

Functions

 DEFINE_TESTCASE (matchspy1, backend &&!remote)
 
static string values_to_repr (const Xapian::ValueCountMatchSpy &spy)
 
static void make_matchspy2_db (Xapian::WritableDatabase &db, const string &)
 
 DEFINE_TESTCASE (matchspy2, generated)
 
 DEFINE_TESTCASE (matchspy4, generated)
 
 DEFINE_TESTCASE (matchspy5, backend)
 
 DEFINE_TESTCASE (matchspy6, !backend)
 
 DEFINE_TESTCASE (matchspy7, !backend)
 Regression test for bug fixed in 1.4.12. More...
 

Detailed Description

tests of MatchSpy usage

Definition in file api_matchspy.cc.

Function Documentation

◆ DEFINE_TESTCASE() [1/6]

DEFINE_TESTCASE ( matchspy1  ,
backend &&!  remote 
)

◆ DEFINE_TESTCASE() [2/6]

DEFINE_TESTCASE ( matchspy2  ,
generated   
)

◆ DEFINE_TESTCASE() [3/6]

DEFINE_TESTCASE ( matchspy4  ,
generated   
)

◆ DEFINE_TESTCASE() [4/6]

DEFINE_TESTCASE ( matchspy5  ,
backend   
)

◆ DEFINE_TESTCASE() [5/6]

DEFINE_TESTCASE ( matchspy6  ,
backend 
)

◆ DEFINE_TESTCASE() [6/6]

DEFINE_TESTCASE ( matchspy7  ,
backend 
)

Regression test for bug fixed in 1.4.12.

Definition at line 337 of file api_matchspy.cc.

References Xapian::ValueCountMatchSpy::merge_results(), Xapian::ValueCountMatchSpy::serialise_results(), and TEST_EXCEPTION.

◆ make_matchspy2_db()

static void make_matchspy2_db ( Xapian::WritableDatabase db,
const string &   
)
static

◆ values_to_repr()

static string values_to_repr ( const Xapian::ValueCountMatchSpy spy)
static