xapian-core  1.4.20
Classes | Functions
api_serialise.cc File Reference

Tests of serialisation functionality. More...

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

Go to the source code of this file.

Classes

class  MyPostingSource2
 
class  ExceptionalPostingSource
 
class  ExceptionalWeight
 
class  ExceptionalMatchSpy
 

Functions

 DEFINE_TESTCASE (serialise_document1, !backend)
 
 DEFINE_TESTCASE (serialise_document2, writable)
 
 DEFINE_TESTCASE (serialise_query1, !backend)
 
 DEFINE_TESTCASE (serialise_query2, !backend)
 
 DEFINE_TESTCASE (serialise_query3, !backend)
 
 DEFINE_TESTCASE (serialise_query4, !backend)
 
 DEFINE_TESTCASE (double_register_leak, !backend)
 Test for memory leaks when registering posting sources or weights twice. More...
 
 DEFINE_TESTCASE (registry1, !backend)
 Check that exceptions when registering a postingsource are handled well. More...
 
 DEFINE_TESTCASE (registry2, !backend)
 Check that exceptions when registering are handled well. More...
 
 DEFINE_TESTCASE (registry3, !backend)
 Check that exceptions when registering are handled well. More...
 

Detailed Description

Tests of serialisation functionality.

Definition in file api_serialise.cc.

Function Documentation

◆ DEFINE_TESTCASE() [1/10]

DEFINE_TESTCASE ( serialise_document1  ,
backend 
)

◆ DEFINE_TESTCASE() [2/10]

DEFINE_TESTCASE ( serialise_document2  ,
writable   
)

◆ DEFINE_TESTCASE() [3/10]

DEFINE_TESTCASE ( serialise_query1  ,
backend 
)

◆ DEFINE_TESTCASE() [4/10]

DEFINE_TESTCASE ( serialise_query2  ,
backend 
)

◆ DEFINE_TESTCASE() [5/10]

DEFINE_TESTCASE ( serialise_query3  ,
backend 
)

◆ DEFINE_TESTCASE() [6/10]

DEFINE_TESTCASE ( serialise_query4  ,
backend 
)

◆ DEFINE_TESTCASE() [7/10]

DEFINE_TESTCASE ( double_register_leak  ,
backend 
)

Test for memory leaks when registering posting sources or weights twice.

Definition at line 308 of file api_serialise.cc.

References Xapian::Registry::register_posting_source(), and Xapian::Registry::register_weighting_scheme().

◆ DEFINE_TESTCASE() [8/10]

DEFINE_TESTCASE ( registry1  ,
backend 
)

◆ DEFINE_TESTCASE() [9/10]

DEFINE_TESTCASE ( registry2  ,
backend 
)

◆ DEFINE_TESTCASE() [10/10]

DEFINE_TESTCASE ( registry3  ,
backend 
)