xapian-core  1.4.27
Functions
api_valuestream.cc File Reference

Tests of valuestream functionality. More...

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

Go to the source code of this file.

Functions

 DEFINE_TESTCASE (valuestream1, backend)
 Feature test simple valuestream iteration. More...
 
 DEFINE_TESTCASE (valuestream2, backend)
 Test skip_to() on a valuestream iterator. More...
 
 DEFINE_TESTCASE (valuestream3, backend)
 Test check() on a valuestream iterator. More...
 
static void gen_valueweightsource5_db (Xapian::WritableDatabase &db, const string &)
 
 DEFINE_TESTCASE (valueweightsource5, valuestats)
 Check that valueweightsource handles last_docid of 0xffffffff. More...
 
 DEFINE_TESTCASE (valuemapsource1, backend)
 
 DEFINE_TESTCASE (valuemapsource2, backend &&!multi)
 
 DEFINE_TESTCASE (fixedweightsource2, !backend)
 
 DEFINE_TESTCASE (decvalwtsource1, writable)
 
 DEFINE_TESTCASE (decvalwtsource2, writable)
 
static void gen_decvalwtsource3_db (Xapian::WritableDatabase &db, const string &)
 
 DEFINE_TESTCASE (decvalwtsource3, backend)
 
 DEFINE_TESTCASE (decvalwtsource4, backend &&!multi)
 
static void gen_decvalwtsource5_db (Xapian::WritableDatabase &db, const string &)
 
 DEFINE_TESTCASE (decvalwtsource5, writable)
 

Detailed Description

Tests of valuestream functionality.

Definition in file api_valuestream.cc.

Function Documentation

◆ DEFINE_TESTCASE() [1/12]

DEFINE_TESTCASE ( valuestream1  ,
backend   
)

◆ DEFINE_TESTCASE() [2/12]

DEFINE_TESTCASE ( valuestream2  ,
backend   
)

◆ DEFINE_TESTCASE() [3/12]

DEFINE_TESTCASE ( valuestream3  ,
backend   
)

◆ DEFINE_TESTCASE() [4/12]

DEFINE_TESTCASE ( valueweightsource5  ,
valuestats   
)

Check that valueweightsource handles last_docid of 0xffffffff.

The original implementation went into an infinite loop in this case.

Definition at line 163 of file api_valuestream.cc.

References Xapian::ValuePostingSource::at_end(), contains(), gen_valueweightsource5_db(), get_database(), get_dbtype(), Xapian::ValuePostingSource::get_docid(), Xapian::ValueWeightPostingSource::init(), Xapian::ValuePostingSource::next(), SKIP_TEST, SKIP_TEST_FOR_BACKEND, TEST, TEST_EQUAL, and XFAIL_FOR_BACKEND().

◆ DEFINE_TESTCASE() [5/12]

DEFINE_TESTCASE ( valuemapsource1  ,
backend   
)

◆ DEFINE_TESTCASE() [6/12]

DEFINE_TESTCASE ( valuemapsource2  ,
backend &&!  multi 
)

◆ DEFINE_TESTCASE() [7/12]

DEFINE_TESTCASE ( fixedweightsource2  ,
backend 
)

◆ DEFINE_TESTCASE() [8/12]

DEFINE_TESTCASE ( decvalwtsource1  ,
writable   
)

◆ DEFINE_TESTCASE() [9/12]

DEFINE_TESTCASE ( decvalwtsource2  ,
writable   
)

◆ DEFINE_TESTCASE() [10/12]

DEFINE_TESTCASE ( decvalwtsource3  ,
backend   
)

◆ DEFINE_TESTCASE() [11/12]

DEFINE_TESTCASE ( decvalwtsource4  ,
backend &&!  multi 
)

◆ DEFINE_TESTCASE() [12/12]

DEFINE_TESTCASE ( decvalwtsource5  ,
writable   
)

◆ gen_decvalwtsource3_db()

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

◆ gen_decvalwtsource5_db()

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

◆ gen_valueweightsource5_db()

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