xapian-core  1.4.21
Functions
api_compact.cc File Reference

Tests of Database::compact() More...

#include <config.h>
#include "api_compact.h"
#include <xapian.h>
#include "apitest.h"
#include "dbcheck.h"
#include "filetests.h"
#include "msvcignoreinvalidparam.h"
#include "str.h"
#include "testsuite.h"
#include "testutils.h"
#include <cerrno>
#include <cstdlib>
#include <fstream>
#include <sys/types.h>
#include "safesysstat.h"
#include "safefcntl.h"
#include "safeunistd.h"
#include "unixcmds.h"
+ Include dependency graph for api_compact.cc:

Go to the source code of this file.

Functions

static void make_sparse_db (Xapian::WritableDatabase &db, const string &s)
 
static void check_sparse_uid_terms (const string &path)
 
 DEFINE_TESTCASE (compactnorenumber1, compact &&generated &&!multi)
 
 DEFINE_TESTCASE (compactmerge1, compact)
 
static void make_multichunk_db (Xapian::WritableDatabase &db, const string &)
 
 DEFINE_TESTCASE (compactmultichunks1, compact &&generated)
 
 DEFINE_TESTCASE (compactstub1, compact)
 
 DEFINE_TESTCASE (compactstub2, compact)
 
 DEFINE_TESTCASE (compactstub3, compact)
 
 DEFINE_TESTCASE (compactstub4, compact)
 
static void make_all_tables (Xapian::WritableDatabase &db, const string &)
 
static void make_missing_tables (Xapian::WritableDatabase &db, const string &)
 
 DEFINE_TESTCASE (compactmissingtables1, compact &&generated)
 
static void make_all_tables2 (Xapian::WritableDatabase &db, const string &)
 
 DEFINE_TESTCASE (compactmergesynonym1, compact &&generated)
 Adds coverage for merging synonym table. More...
 
 DEFINE_TESTCASE (compactempty1, compact)
 
 DEFINE_TESTCASE (compactmultipass1, compact &&generated)
 
 DEFINE_TESTCASE (compacttofd1, compact &&!chert)
 
 DEFINE_TESTCASE (compacttofd2, compact &&!chert)
 
 DEFINE_TESTCASE (compactsingle1, compact &&writable &&!chert)
 
 DEFINE_TESTCASE (compact1, compact &&writable)
 

Detailed Description

Tests of Database::compact()

Definition in file api_compact.cc.

Function Documentation

◆ check_sparse_uid_terms()

static void check_sparse_uid_terms ( const string &  path)
static

◆ DEFINE_TESTCASE() [1/15]

DEFINE_TESTCASE ( compactnorenumber1  ,
compact &&generated &&!  multi 
)

◆ DEFINE_TESTCASE() [2/15]

DEFINE_TESTCASE ( compactmerge1  ,
compact   
)

◆ DEFINE_TESTCASE() [3/15]

DEFINE_TESTCASE ( compactmultichunks1  ,
compact &&  generated 
)

◆ DEFINE_TESTCASE() [4/15]

DEFINE_TESTCASE ( compactstub1  ,
compact   
)

◆ DEFINE_TESTCASE() [5/15]

DEFINE_TESTCASE ( compactstub2  ,
compact   
)

◆ DEFINE_TESTCASE() [6/15]

DEFINE_TESTCASE ( compactstub3  ,
compact   
)

◆ DEFINE_TESTCASE() [7/15]

DEFINE_TESTCASE ( compactstub4  ,
compact   
)

◆ DEFINE_TESTCASE() [8/15]

DEFINE_TESTCASE ( compactmissingtables1  ,
compact &&  generated 
)

◆ DEFINE_TESTCASE() [9/15]

DEFINE_TESTCASE ( compactmergesynonym1  ,
compact &&  generated 
)

◆ DEFINE_TESTCASE() [10/15]

DEFINE_TESTCASE ( compactempty1  ,
compact   
)

◆ DEFINE_TESTCASE() [11/15]

DEFINE_TESTCASE ( compactmultipass1  ,
compact &&  generated 
)

◆ DEFINE_TESTCASE() [12/15]

DEFINE_TESTCASE ( compacttofd1  ,
compact &&!  chert 
)

◆ DEFINE_TESTCASE() [13/15]

DEFINE_TESTCASE ( compacttofd2  ,
compact &&!  chert 
)

◆ DEFINE_TESTCASE() [14/15]

DEFINE_TESTCASE ( compactsingle1  ,
compact &&writable &&!  chert 
)

◆ DEFINE_TESTCASE() [15/15]

DEFINE_TESTCASE ( compact1  ,
compact &&  writable 
)

◆ 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