|
xapian-core
1.4.29
|
tests of MatchSpy usage More...
#include <config.h>#include "api_matchspy.h"#include <xapian.h>#include <vector>#include "backendmanager.h"#include "str.h"#include "testsuite.h"#include "testutils.h"#include "apitest.h"
Include dependency graph for api_matchspy.cc:Go to the source code of this file.
Classes | |
| class | SimpleMatchSpy |
| class | MySpy |
Functions | |
| DEFINE_TESTCASE (matchspy1, backend &&!remote) | |
| static string | values_to_repr (const Xapian::ValueCountMatchSpy &spy) |
| static void | make_matchspy2_db (Xapian::WritableDatabase &db, const string &) |
| DEFINE_TESTCASE (matchspy2, backend) | |
| DEFINE_TESTCASE (matchspy4, backend) | |
| DEFINE_TESTCASE (matchspy5, backend) | |
| DEFINE_TESTCASE (matchspy6, !backend) | |
| DEFINE_TESTCASE (matchspy7, !backend) | |
| Regression test for bug fixed in 1.4.12. More... | |
tests of MatchSpy usage
Definition in file api_matchspy.cc.
| DEFINE_TESTCASE | ( | matchspy1 | , |
| backend &&! | remote | ||
| ) |
Definition at line 57 of file api_matchspy.cc.
References Xapian::Enquire::add_matchspy(), Xapian::MSet::begin(), Xapian::MSet::end(), get_database(), Xapian::Database::get_lastdocid(), Xapian::Enquire::get_mset(), SimpleMatchSpy::seen, Xapian::Enquire::set_query(), Xapian::MSet::size(), TEST, and TEST_EQUAL.
| DEFINE_TESTCASE | ( | matchspy2 | , |
| backend | |||
| ) |
Definition at line 138 of file api_matchspy.cc.
References Xapian::Enquire::add_matchspy(), get_database(), Xapian::Enquire::get_mset(), Xapian::ValueCountMatchSpy::get_total(), make_matchspy2_db(), Xapian::Enquire::set_query(), Xapian::Enquire::set_weighting_scheme(), Xapian::Database::size(), TEST_EQUAL, TEST_STRINGS_EQUAL, and values_to_repr().
| DEFINE_TESTCASE | ( | matchspy4 | , |
| backend | |||
| ) |
Definition at line 174 of file api_matchspy.cc.
References Xapian::Enquire::add_matchspy(), get_database(), Xapian::Enquire::get_mset(), Xapian::ValueCountMatchSpy::get_total(), make_matchspy2_db(), Xapian::Enquire::set_query(), Xapian::Enquire::set_sort_by_value(), Xapian::Enquire::set_weighting_scheme(), Xapian::Database::size(), Xapian::Internal::str(), TEST_EQUAL, TEST_STRINGS_EQUAL, Xapian::ValueCountMatchSpy::top_values_begin(), Xapian::ValueCountMatchSpy::top_values_end(), tout, and XFAIL_FOR_BACKEND().
| DEFINE_TESTCASE | ( | matchspy5 | , |
| backend | |||
| ) |
Definition at line 276 of file api_matchspy.cc.
References Xapian::Enquire::add_matchspy(), get_database(), Xapian::Enquire::get_mset(), Xapian::Enquire::set_query(), Xapian::MSet::size(), TEST, TEST_EQUAL, Xapian::ValueCountMatchSpy::values_begin(), and Xapian::ValueCountMatchSpy::values_end().
| DEFINE_TESTCASE | ( | matchspy6 | , |
| ! | backend | ||
| ) |
Definition at line 319 of file api_matchspy.cc.
References Xapian::MatchSpy::clone(), Xapian::MatchSpy::get_description(), Xapian::MatchSpy::merge_results(), Xapian::MatchSpy::name(), Xapian::MatchSpy::serialise(), Xapian::MatchSpy::serialise_results(), TEST_EQUAL, TEST_EXCEPTION, and Xapian::MatchSpy::unserialise().
| DEFINE_TESTCASE | ( | matchspy7 | , |
| ! | backend | ||
| ) |
Regression test for bug fixed in 1.4.12.
Definition at line 335 of file api_matchspy.cc.
References Xapian::ValueCountMatchSpy::merge_results(), Xapian::ValueCountMatchSpy::serialise_results(), and TEST_EXCEPTION.
|
static |
Definition at line 111 of file api_matchspy.cc.
References Xapian::WritableDatabase::add_document(), Xapian::Document::add_term(), Xapian::Document::add_value(), Xapian::Document::set_data(), and Xapian::Internal::str().
Referenced by DEFINE_TESTCASE().
|
static |
Definition at line 97 of file api_matchspy.cc.
References Xapian::Internal::str(), Xapian::ValueCountMatchSpy::values_begin(), and Xapian::ValueCountMatchSpy::values_end().
Referenced by DEFINE_TESTCASE().