tests/api_valuestats.cc File Reference

#include <config.h>
#include "api_valuestats.h"
#include <xapian.h>
#include "testsuite.h"
#include "testutils.h"
#include "apitest.h"

Include dependency graph for api_valuestats.cc:

Go to the source code of this file.

Functions

 DEFINE_TESTCASE (valuestats1, writable &&valuestats)
 Test of value statistics methods.
 DEFINE_TESTCASE (valuestats2, transactions &&valuestats)
 Test that value statistics stuff obeys transactions.
 DEFINE_TESTCASE (valuestats3, valuestats)
 Test reading value statistics from prebuilt databases.
 DEFINE_TESTCASE (valuestats4, transactions &&valuestats)
 DEFINE_TESTCASE (valuestats5,!backend)
 Regression test for bug fixed in 1.1.1 which led to incorrect valuestats.


Function Documentation

DEFINE_TESTCASE ( valuestats5  ,
backend 
)

Regression test for bug fixed in 1.1.1 which led to incorrect valuestats.

Definition at line 300 of file api_valuestats.cc.

References Xapian::Document::add_value(), Xapian::Document::remove_value(), TEST, TEST_EQUAL, Xapian::Document::values_begin(), and Xapian::Document::values_end().

DEFINE_TESTCASE ( valuestats4  ,
transactions &&  valuestats 
)

DEFINE_TESTCASE ( valuestats3  ,
valuestats   
)

Test reading value statistics from prebuilt databases.

Definition at line 223 of file api_valuestats.cc.

References get_database(), Xapian::Database::get_value_freq(), Xapian::Database::get_value_lower_bound(), Xapian::Database::get_value_upper_bound(), and TEST_EQUAL.

DEFINE_TESTCASE ( valuestats2  ,
transactions &&  valuestats 
)

DEFINE_TESTCASE ( valuestats1  ,
writable &&  valuestats 
)


Documentation for Xapian (version 1.2.8).
Generated on 14 Dec 2011 by Doxygen 1.5.9.