xapian-core  1.4.25
Functions | Variables
api_termgen.cc File Reference

Tests of Xapian::TermGenerator. More...

#include <config.h>
#include "api_termgen.h"
#include <xapian.h>
#include <string>
#include <array>
#include "apitest.h"
#include "str.h"
#include "testsuite.h"
#include "testutils.h"
+ Include dependency graph for api_termgen.cc:

Go to the source code of this file.

Functions

static string format_doc_termlist (const Xapian::Document &doc)
 
 DEFINE_TESTCASE (termgen1, !backend)
 
 DEFINE_TESTCASE (tg_spell1, spelling &&writable)
 Test spelling data generation. More...
 
 DEFINE_TESTCASE (tg_spell2, !backend)
 Regression test for bug fixed in 1.0.5 - previously this segfaulted. More...
 
 DEFINE_TESTCASE (tg_max_word_length1, !backend)
 

Variables

static const test test_simple []
 

Detailed Description

Tests of Xapian::TermGenerator.

Definition in file api_termgen.cc.

Function Documentation

◆ DEFINE_TESTCASE() [1/4]

DEFINE_TESTCASE ( termgen1  ,
backend 
)

◆ DEFINE_TESTCASE() [2/4]

DEFINE_TESTCASE ( tg_spell1  ,
spelling &&  writable 
)

◆ DEFINE_TESTCASE() [3/4]

DEFINE_TESTCASE ( tg_spell2  ,
backend 
)

Regression test for bug fixed in 1.0.5 - previously this segfaulted.

Definition at line 869 of file api_termgen.cc.

References Xapian::TermGenerator::FLAG_SPELLING, Xapian::TermGenerator::index_text(), Xapian::TermGenerator::set_document(), Xapian::TermGenerator::set_flags(), and TEST_EXCEPTION.

◆ DEFINE_TESTCASE() [4/4]

DEFINE_TESTCASE ( tg_max_word_length1  ,
backend 
)

◆ format_doc_termlist()

static string format_doc_termlist ( const Xapian::Document doc)
static

Variable Documentation

◆ test_simple

const test test_simple[]
static

Definition at line 86 of file api_termgen.cc.