xapian-core  1.4.27
Macros | Functions
api_compactold.cc File Reference

Tests of old compaction API. More...

#include <config.h>
#include "api_compactold.h"
#include <xapian.h>
#include "apitest.h"
#include "dbcheck.h"
#include "filetests.h"
#include "str.h"
#include "testsuite.h"
#include "testutils.h"
#include <cstdlib>
#include <fstream>
#include "unixcmds.h"
+ Include dependency graph for api_compactold.cc:

Go to the source code of this file.

Macros

#define XAPIAN_DEPRECATED(X)   X
 

Functions

static void make_sparse_db (Xapian::WritableDatabase &db, const string &s)
 
static void check_sparse_uid_terms (const string &path)
 
 DEFINE_TESTCASE (compactoldnorenumber1, compact &&!multi)
 
 DEFINE_TESTCASE (compactoldmerge1, compact)
 
static void make_multichunk_db (Xapian::WritableDatabase &db, const string &)
 
 DEFINE_TESTCASE (compactoldmultichunks1, compact)
 
 DEFINE_TESTCASE (compactoldstub1, compact)
 
 DEFINE_TESTCASE (compactoldstub2, compact)
 
 DEFINE_TESTCASE (compactoldstub3, compact)
 
 DEFINE_TESTCASE (compactoldstub4, compact)
 
static void make_all_tables (Xapian::WritableDatabase &db, const string &)
 
static void make_missing_tables (Xapian::WritableDatabase &db, const string &)
 
 DEFINE_TESTCASE (compactoldmissingtables1, compact)
 
static void make_all_tables2 (Xapian::WritableDatabase &db, const string &)
 
 DEFINE_TESTCASE (compactoldmergesynonym1, compact)
 Adds coverage for merging synonym table. More...
 
 DEFINE_TESTCASE (compactoldempty1, compact)
 
 DEFINE_TESTCASE (compactoldmultipass1, compact)
 

Detailed Description

Tests of old compaction API.

Definition in file api_compactold.cc.

Macro Definition Documentation

◆ XAPIAN_DEPRECATED

#define XAPIAN_DEPRECATED (   X)    X

Definition at line 27 of file api_compactold.cc.

Function Documentation

◆ check_sparse_uid_terms()

static void check_sparse_uid_terms ( const string &  path)
static

◆ DEFINE_TESTCASE() [1/11]

DEFINE_TESTCASE ( compactoldnorenumber1  ,
compact &&!  multi 
)

◆ DEFINE_TESTCASE() [2/11]

DEFINE_TESTCASE ( compactoldmerge1  ,
compact   
)

◆ DEFINE_TESTCASE() [3/11]

DEFINE_TESTCASE ( compactoldmultichunks1  ,
compact   
)

◆ DEFINE_TESTCASE() [4/11]

DEFINE_TESTCASE ( compactoldstub1  ,
compact   
)

◆ DEFINE_TESTCASE() [5/11]

DEFINE_TESTCASE ( compactoldstub2  ,
compact   
)

◆ DEFINE_TESTCASE() [6/11]

DEFINE_TESTCASE ( compactoldstub3  ,
compact   
)

◆ DEFINE_TESTCASE() [7/11]

DEFINE_TESTCASE ( compactoldstub4  ,
compact   
)

◆ DEFINE_TESTCASE() [8/11]

DEFINE_TESTCASE ( compactoldmissingtables1  ,
compact   
)

◆ DEFINE_TESTCASE() [9/11]

DEFINE_TESTCASE ( compactoldmergesynonym1  ,
compact   
)

◆ DEFINE_TESTCASE() [10/11]

DEFINE_TESTCASE ( compactoldempty1  ,
compact   
)

◆ DEFINE_TESTCASE() [11/11]

DEFINE_TESTCASE ( compactoldmultipass1  ,
compact   
)

◆ make_all_tables()

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

◆ make_all_tables2()

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

◆ make_missing_tables()

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

◆ make_multichunk_db()

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

◆ make_sparse_db()

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