tests/stemtest.cc File Reference

#include <config.h>
#include <stdlib.h>
#include <string>
#include <fstream>
#include <iostream>
#include <xapian/stem.h>
#include "testsuite.h"

Include dependency graph for stemtest.cc:

Go to the source code of this file.

Functions

static bool test_stemrandom ()
static bool test_stemjunk ()
static bool test_stemdict ()
int main (int argc, char **argv)

Variables

static const int JUNKSIZE = 2 * 1048576
static string language
static Xapian::Stem stemmer
static string srcdir
static int seed
test_desc tests []
 The lists of tests to perform.


Function Documentation

static bool test_stemrandom (  )  [static]

Definition at line 48 of file stemtest.cc.

References FAIL_TEST, JUNKSIZE, seed, SKIP_TEST, stemmer, and tout.

static bool test_stemjunk (  )  [static]

Definition at line 88 of file stemtest.cc.

References FAIL_TEST, JUNKSIZE, seed, SKIP_TEST, stemmer, and tout.

static bool test_stemdict (  )  [static]

Definition at line 124 of file stemtest.cc.

References language, SKIP_TEST, srcdir, stemmer, TEST_EQUAL, and tout.

int main ( int  argc,
char **  argv 
)

Definition at line 171 of file stemtest.cc.

References test_driver::add_command_line_option(), atoi(), Xapian::Stem::get_available_languages(), test_driver::get_srcdir(), language, test_driver::parse_command_line(), test_driver::run(), seed, srcdir, stemmer, and tests.


Variable Documentation

const int JUNKSIZE = 2 * 1048576 [static]

Definition at line 36 of file stemtest.cc.

Referenced by test_stemjunk(), and test_stemrandom().

string language [static]

Definition at line 38 of file stemtest.cc.

Referenced by DEFINE_TESTCASE(), main(), and test_stemdict().

Xapian::Stem stemmer [static]

Definition at line 40 of file stemtest.cc.

string srcdir [static]

Definition at line 42 of file stemtest.cc.

Referenced by test_driver::get_srcdir(), main(), and test_stemdict().

int seed [static]

Definition at line 44 of file stemtest.cc.

Referenced by main(), test_stemjunk(), and test_stemrandom().

test_desc tests[]

Initial value:

 {
    {"stemrandom",              test_stemrandom},
    {"stemjunk",                test_stemjunk},
    {"stemdict",                test_stemdict},
    {0, 0}
}
The lists of tests to perform.

Definition at line 164 of file stemtest.cc.


Documentation for Xapian (version 1.0.10).
Generated on 24 Dec 2008 by Doxygen 1.5.2.