xapian-core
1.4.26
|
tests of document replacing. More...
#include <config.h>
#include "api_replacedoc.h"
#include <string>
#include <xapian.h>
#include "testsuite.h"
#include "testutils.h"
#include "apitest.h"
#include "dbcheck.h"
Go to the source code of this file.
Functions | |
DEFINE_TESTCASE (poslistupdate1, positional &&writable) | |
static Xapian::Document | basic_doc () |
static string | basic_docterms () |
DEFINE_TESTCASE (modtermwdf1, writable) | |
Check that changing the wdf of a term in a document works. More... | |
tests of document replacing.
Definition in file api_replacedoc.cc.
|
static |
Definition at line 103 of file api_replacedoc.cc.
References Xapian::Document::add_term().
Referenced by DEFINE_TESTCASE().
|
static |
Definition at line 111 of file api_replacedoc.cc.
Referenced by DEFINE_TESTCASE().
DEFINE_TESTCASE | ( | poslistupdate1 | , |
positional && | writable | ||
) |
Definition at line 39 of file api_replacedoc.cc.
References Xapian::WritableDatabase::add_document(), Xapian::Document::add_posting(), Xapian::Document::add_term(), Xapian::WritableDatabase::commit(), docterms_to_string(), Xapian::Database::get_document(), get_writable_database(), Xapian::Database::positionlist_begin(), Xapian::Database::positionlist_end(), Xapian::Document::remove_term(), Xapian::WritableDatabase::replace_document(), TEST, and TEST_EQUAL.
DEFINE_TESTCASE | ( | modtermwdf1 | , |
writable | |||
) |
Check that changing the wdf of a term in a document works.
Definition at line 117 of file api_replacedoc.cc.
References Xapian::WritableDatabase::add_document(), Xapian::Document::add_posting(), Xapian::Document::add_term(), basic_doc(), basic_docterms(), Xapian::WritableDatabase::commit(), dbcheck(), Xapian::WritableDatabase::delete_document(), docstats_to_string(), docterms_to_string(), Xapian::Database::get_avlength(), Xapian::Database::get_doccount(), Xapian::Database::get_document(), Xapian::Database::get_lastdocid(), get_writable_database(), postlist_to_string(), Xapian::WritableDatabase::replace_document(), Xapian::Document::termlist_count(), termstats_to_string(), TEST_EQUAL, and TEST_EXCEPTION.