xapian-core  1.4.21
Macros | Functions
api_generated.cc File Reference

test common features of API classes More...

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

Go to the source code of this file.

Macros

#define XAPIAN_DEPRECATED(D)   D
 

Functions

 DEFINE_TESTCASE (defaultctor1, !backend)
 Check uncopyable API classes which should have a default ctor actually do. More...
 
 DEFINE_TESTCASE (copyassign1, !backend)
 Test that API classes have a copy ctor and assignment operator. More...
 

Detailed Description

test common features of API classes

Definition in file api_generated.cc.

Macro Definition Documentation

◆ XAPIAN_DEPRECATED

#define XAPIAN_DEPRECATED (   D)    D

Definition at line 26 of file api_generated.cc.

Function Documentation

◆ DEFINE_TESTCASE() [1/2]

DEFINE_TESTCASE ( defaultctor1  ,
backend 
)

Check uncopyable API classes which should have a default ctor actually do.

Definition at line 35 of file api_generated.cc.

References Xapian::SimpleStopper::get_description(), Xapian::ValueCountMatchSpy::get_description(), Xapian::DecreasingValueWeightPostingSource::get_description(), and TEST.

◆ DEFINE_TESTCASE() [2/2]

DEFINE_TESTCASE ( copyassign1  ,
backend 
)

Test that API classes have a copy ctor and assignment operator.

Definition at line 69 of file api_generated.cc.

References Xapian::DB_BACKEND_INMEMORY, Xapian::Stem::get_description(), Xapian::Database::get_description(), query(), and TEST.