xapian-core  1.4.21
Functions
api_nodb.cc File Reference

tests which don't use any of the backends More...

#include <config.h>
#include "api_nodb.h"
#include <xapian.h>
#include "apitest.h"
#include "testsuite.h"
#include "testutils.h"
#include <list>
#include <string>
#include <vector>
+ Include dependency graph for api_nodb.cc:

Go to the source code of this file.

Functions

 DEFINE_TESTCASE (trivial1, !backend)
 
 DEFINE_TESTCASE (getqterms1, !backend)
 
 DEFINE_TESTCASE (getqterms2, !backend)
 
 DEFINE_TESTCASE (emptyquery2, !backend)
 
 DEFINE_TESTCASE (emptyquery3, !backend)
 Regression test for behaviour for an empty query with AND_NOT. More...
 
 DEFINE_TESTCASE (querylen1, !backend)
 
 DEFINE_TESTCASE (querylen2, !backend)
 
 DEFINE_TESTCASE (queryvalid1, !backend)
 
 DEFINE_TESTCASE (dontflattensubqueries1, !backend)
 Check we no longer flatten subqueries combined with the same operator. More...
 
 DEFINE_TESTCASE (emptyquerypart1, !backend)
 
 DEFINE_TESTCASE (stemlangs1, !backend)
 
 DEFINE_TESTCASE (weight1, !backend)
 
 DEFINE_TESTCASE (nosuchdb1, !backend)
 
 DEFINE_TESTCASE (addvalue1, !backend)
 
 DEFINE_TESTCASE (poscollapse2, !backend)
 
 DEFINE_TESTCASE (uninitdb1, !backend)
 
 DEFINE_TESTCASE (scaleweight3, !backend)
 
 DEFINE_TESTCASE (rset3, !backend)
 
 DEFINE_TESTCASE (rset4, !backend)
 
 DEFINE_TESTCASE (valuesetmatchdecider1, !backend)
 
 DEFINE_TESTCASE (emptymset1, !backend)
 
 DEFINE_TESTCASE (expanddeciderfilterprefix1, !backend)
 

Detailed Description

tests which don't use any of the backends

Definition in file api_nodb.cc.

Function Documentation

◆ DEFINE_TESTCASE() [1/22]

DEFINE_TESTCASE ( trivial1  ,
backend 
)

Definition at line 43 of file api_nodb.cc.

◆ DEFINE_TESTCASE() [2/22]

DEFINE_TESTCASE ( getqterms1  ,
backend 
)

◆ DEFINE_TESTCASE() [3/22]

DEFINE_TESTCASE ( getqterms2  ,
backend 
)

◆ DEFINE_TESTCASE() [4/22]

DEFINE_TESTCASE ( emptyquery2  ,
backend 
)

Definition at line 83 of file api_nodb.cc.

References Xapian::Query::OP_OR, and TEST.

◆ DEFINE_TESTCASE() [5/22]

DEFINE_TESTCASE ( emptyquery3  ,
backend 
)

Regression test for behaviour for an empty query with AND_NOT.

Definition at line 94 of file api_nodb.cc.

References Xapian::Query::get_description(), Xapian::Query::OP_AND, Xapian::Query::OP_AND_MAYBE, Xapian::Query::OP_AND_NOT, Xapian::Query::OP_OR, Xapian::Query::OP_XOR, and tout.

◆ DEFINE_TESTCASE() [6/22]

DEFINE_TESTCASE ( querylen1  ,
backend 
)

◆ DEFINE_TESTCASE() [7/22]

DEFINE_TESTCASE ( querylen2  ,
backend 
)

Definition at line 134 of file api_nodb.cc.

References Xapian::Query::OP_AND, Xapian::Query::OP_OR, TEST_EQUAL, and tout.

◆ DEFINE_TESTCASE() [8/22]

DEFINE_TESTCASE ( queryvalid1  ,
backend 
)

Definition at line 178 of file api_nodb.cc.

References Xapian::Query::OP_XOR, and tout.

◆ DEFINE_TESTCASE() [9/22]

DEFINE_TESTCASE ( dontflattensubqueries1  ,
backend 
)

Check we no longer flatten subqueries combined with the same operator.

Prior to 1.3.0 we did flatten these, but it's simpler to just handle this when we convert the query to a PostList tree, and that works better with Query objects being immutable.

Definition at line 189 of file api_nodb.cc.

References Xapian::Query::OP_AND, Xapian::Query::OP_OR, and TEST_EQUAL.

◆ DEFINE_TESTCASE() [10/22]

DEFINE_TESTCASE ( emptyquerypart1  ,
backend 
)

Definition at line 214 of file api_nodb.cc.

References Xapian::Query::OP_AND, Xapian::Query::OP_OR, query(), and TEST.

◆ DEFINE_TESTCASE() [11/22]

DEFINE_TESTCASE ( stemlangs1  ,
backend 
)

◆ DEFINE_TESTCASE() [12/22]

DEFINE_TESTCASE ( weight1  ,
backend 
)

◆ DEFINE_TESTCASE() [13/22]

DEFINE_TESTCASE ( nosuchdb1  ,
backend 
)

◆ DEFINE_TESTCASE() [14/22]

DEFINE_TESTCASE ( addvalue1  ,
backend 
)

◆ DEFINE_TESTCASE() [15/22]

DEFINE_TESTCASE ( poscollapse2  ,
backend 
)

Definition at line 464 of file api_nodb.cc.

References Xapian::Query::get_length(), Xapian::Query::OP_OR, and TEST_EQUAL.

◆ DEFINE_TESTCASE() [16/22]

DEFINE_TESTCASE ( uninitdb1  ,
backend 
)

Definition at line 471 of file api_nodb.cc.

References TEST_EXCEPTION.

◆ DEFINE_TESTCASE() [17/22]

DEFINE_TESTCASE ( scaleweight3  ,
backend 
)

◆ DEFINE_TESTCASE() [18/22]

DEFINE_TESTCASE ( rset3  ,
backend 
)

◆ DEFINE_TESTCASE() [19/22]

DEFINE_TESTCASE ( rset4  ,
backend 
)

◆ DEFINE_TESTCASE() [20/22]

DEFINE_TESTCASE ( valuesetmatchdecider1  ,
backend 
)

◆ DEFINE_TESTCASE() [21/22]

DEFINE_TESTCASE ( emptymset1  ,
backend 
)

Definition at line 541 of file api_nodb.cc.

References Xapian::MSet::get_termfreq(), and TEST_EXCEPTION.

◆ DEFINE_TESTCASE() [22/22]

DEFINE_TESTCASE ( expanddeciderfilterprefix1  ,
backend 
)

Definition at line 547 of file api_nodb.cc.

References TEST.