/dports/databases/xapian-core/xapian-core-1.4.18/tests/ |
H A D | api_compact.cc | 261 TEST_EQUAL(indb.get_doccount() * 2, outdb.get_doccount()); in DEFINE_TESTCASE() 262 dbcheck(outdb, outdb.get_doccount(), outdb.get_doccount()); in DEFINE_TESTCASE() 328 TEST_EQUAL(indb.get_doccount(), outdb.get_doccount()); in DEFINE_TESTCASE() 329 dbcheck(outdb, outdb.get_doccount(), outdb.get_doccount()); in DEFINE_TESTCASE() 355 TEST_EQUAL(indb.get_doccount(), outdb.get_doccount()); in DEFINE_TESTCASE() 356 dbcheck(outdb, outdb.get_doccount(), outdb.get_doccount()); in DEFINE_TESTCASE() 380 TEST_EQUAL(indb.get_doccount(), outdb.get_doccount()); in DEFINE_TESTCASE() 381 dbcheck(outdb, outdb.get_doccount(), outdb.get_doccount()); in DEFINE_TESTCASE() 404 dbcheck(outdb, outdb.get_doccount(), outdb.get_doccount()); in DEFINE_TESTCASE() 618 TEST_EQUAL(indb.get_doccount(), outdb.get_doccount()); [all …]
|
H A D | api_compactold.cc | 257 TEST_EQUAL(indb.get_doccount() * 2, outdb.get_doccount()); in DEFINE_TESTCASE() 258 dbcheck(outdb, outdb.get_doccount(), outdb.get_doccount()); in DEFINE_TESTCASE() 292 TEST_EQUAL(indb.get_doccount(), outdb.get_doccount()); in DEFINE_TESTCASE() 293 dbcheck(outdb, outdb.get_doccount(), outdb.get_doccount()); in DEFINE_TESTCASE() 319 TEST_EQUAL(indb.get_doccount(), outdb.get_doccount()); in DEFINE_TESTCASE() 320 dbcheck(outdb, outdb.get_doccount(), outdb.get_doccount()); in DEFINE_TESTCASE() 344 TEST_EQUAL(indb.get_doccount(), outdb.get_doccount()); in DEFINE_TESTCASE() 345 dbcheck(outdb, outdb.get_doccount(), outdb.get_doccount()); in DEFINE_TESTCASE() 361 in_docs = indb.get_doccount(); in DEFINE_TESTCASE() 372 dbcheck(outdb, outdb.get_doccount(), outdb.get_doccount()); in DEFINE_TESTCASE() [all …]
|
H A D | api_transdb.cc | 64 Xapian::doccount docs = db.get_doccount(); in DEFINE_TESTCASE() 71 TEST_EQUAL(db.get_doccount(), docs + 1); in DEFINE_TESTCASE() 74 TEST_EQUAL(db.get_doccount(), docs + 1); in DEFINE_TESTCASE() 82 Xapian::doccount docs = db.get_doccount(); in DEFINE_TESTCASE() 89 TEST_EQUAL(db.get_doccount(), docs + 1); in DEFINE_TESTCASE() 92 TEST_EQUAL(db.get_doccount(), docs); in DEFINE_TESTCASE() 101 Xapian::doccount docs = db.get_doccount(); in DEFINE_TESTCASE() 108 TEST_EQUAL(db.get_doccount(), docs + 1); in DEFINE_TESTCASE() 113 TEST_EQUAL(db.get_doccount(), docs + 2); in DEFINE_TESTCASE() 116 TEST_EQUAL(db.get_doccount(), docs + 1); in DEFINE_TESTCASE()
|
H A D | api_wrdb.cc | 1306 TEST_EQUAL(db.get_doccount(), 512); in DEFINE_TESTCASE() 1309 TEST_EQUAL(db.get_doccount(), 511); in DEFINE_TESTCASE() 1312 TEST_EQUAL(db.get_doccount(), 510); in DEFINE_TESTCASE() 1315 TEST_EQUAL(db.get_doccount(), 509); in DEFINE_TESTCASE() 1321 TEST_EQUAL(db.get_doccount(), 1); in DEFINE_TESTCASE() 1324 TEST_EQUAL(db.get_doccount(), 0); in DEFINE_TESTCASE() 1330 TEST_EQUAL(db.get_doccount(), 0); in DEFINE_TESTCASE() 1535 TEST_EQUAL(dbr.get_doccount(), 0); in DEFINE_TESTCASE() 1548 TEST_EQUAL(dbr.get_doccount(), 1); in DEFINE_TESTCASE() 1561 TEST_EQUAL(dbr.get_doccount(), 2); in DEFINE_TESTCASE() [all …]
|
H A D | api_collapse.cc | 39 Xapian::MSet full_mset = enquire.get_mset(0, db.get_doccount()); in DEFINE_TESTCASE() 43 for (Xapian::docid did = 1; did <= db.get_doccount(); ++did) { in DEFINE_TESTCASE() 47 for (Xapian::doccount cmax = db.get_doccount() + 1; cmax > 0; --cmax) { in DEFINE_TESTCASE()
|
H A D | api_closedb.cc | 276 TEST_EQUAL(db.get_doccount(), 566); in DEFINE_TESTCASE() 306 TEST_EQUAL(wdb.get_doccount(), 1); 309 TEST_EQUAL(db.get_doccount(), 1); 319 TEST_EQUAL(wdb.get_doccount(), 1); in DEFINE_TESTCASE() 322 TEST_EQUAL(db.get_doccount(), 0); in DEFINE_TESTCASE() 330 TEST_EQUAL(wdb.get_doccount(), 1); in DEFINE_TESTCASE() 333 TEST_EQUAL(db.get_doccount(), 0); in DEFINE_TESTCASE()
|
H A D | api_metadata.cc | 48 TEST_EQUAL(db.get_doccount(), 0); in DEFINE_TESTCASE() 53 TEST_EQUAL(db.get_doccount(), 0); in DEFINE_TESTCASE() 85 TEST_EQUAL(dbr.get_doccount(), 0); 89 TEST_EQUAL(db.get_doccount(), 1); 104 TEST_EQUAL(db.get_doccount(), 1);
|
H A D | api_opsynonym.cc | 345 Xapian::MSet mset_orig = enquire.get_mset(0, db.get_doccount()); in DEFINE_TESTCASE() 354 Xapian::MSet mset_zero = enquire.get_mset(0, db.get_doccount()); in DEFINE_TESTCASE() 400 Xapian::MSet mset1 = enquire.get_mset(0, db.get_doccount()); in DEFINE_TESTCASE() 404 Xapian::MSet mset2 = enquire.get_mset(0, db.get_doccount()); in DEFINE_TESTCASE() 424 Xapian::MSet mset1 = enq.get_mset(0, db.get_doccount()); in DEFINE_TESTCASE() 426 Xapian::MSet mset2 = enq.get_mset(0, db.get_doccount()); in DEFINE_TESTCASE() 428 Xapian::MSet msetmax = enq.get_mset(0, db.get_doccount()); in DEFINE_TESTCASE()
|
/dports/databases/xapian-core12/xapian-core-1.2.25/tests/ |
H A D | api_transdb.cc | 66 Xapian::doccount docs = db.get_doccount(); in DEFINE_TESTCASE() 73 TEST_EQUAL(db.get_doccount(), docs + 1); in DEFINE_TESTCASE() 76 TEST_EQUAL(db.get_doccount(), docs + 1); in DEFINE_TESTCASE() 86 Xapian::doccount docs = db.get_doccount(); in DEFINE_TESTCASE() 93 TEST_EQUAL(db.get_doccount(), docs + 1); in DEFINE_TESTCASE() 96 TEST_EQUAL(db.get_doccount(), docs); in DEFINE_TESTCASE() 107 Xapian::doccount docs = db.get_doccount(); in DEFINE_TESTCASE() 114 TEST_EQUAL(db.get_doccount(), docs + 1); in DEFINE_TESTCASE() 119 TEST_EQUAL(db.get_doccount(), docs + 2); in DEFINE_TESTCASE() 122 TEST_EQUAL(db.get_doccount(), docs + 1); in DEFINE_TESTCASE()
|
H A D | api_compact.cc | 262 TEST_EQUAL(indb.get_doccount() * 2, outdb.get_doccount()); 263 dbcheck(outdb, outdb.get_doccount(), outdb.get_doccount()); 299 TEST_EQUAL(indb.get_doccount(), outdb.get_doccount()); in DEFINE_TESTCASE() 300 dbcheck(outdb, outdb.get_doccount(), outdb.get_doccount()); in DEFINE_TESTCASE() 328 TEST_EQUAL(indb.get_doccount(), outdb.get_doccount()); 329 dbcheck(outdb, outdb.get_doccount(), outdb.get_doccount()); 355 TEST_EQUAL(indb.get_doccount(), outdb.get_doccount()); 356 dbcheck(outdb, outdb.get_doccount(), outdb.get_doccount()); 374 in_docs = indb.get_doccount(); 385 dbcheck(outdb, outdb.get_doccount(), outdb.get_doccount()); [all …]
|
H A D | api_closedb.cc | 184 TEST_EQUAL(db.get_doccount(), 566); in DEFINE_TESTCASE() 215 TEST_EQUAL(wdb.get_doccount(), 1); 218 TEST_EQUAL(db.get_doccount(), 1); 230 TEST_EQUAL(wdb.get_doccount(), 1); 233 TEST_EQUAL(db.get_doccount(), 0); 241 TEST_EQUAL(wdb.get_doccount(), 1); 244 TEST_EQUAL(db.get_doccount(), 0);
|
H A D | api_wrdb.cc | 1303 TEST_EQUAL(db.get_doccount(), 512); in DEFINE_TESTCASE() 1306 TEST_EQUAL(db.get_doccount(), 511); in DEFINE_TESTCASE() 1309 TEST_EQUAL(db.get_doccount(), 510); in DEFINE_TESTCASE() 1312 TEST_EQUAL(db.get_doccount(), 509); in DEFINE_TESTCASE() 1318 TEST_EQUAL(db.get_doccount(), 1); in DEFINE_TESTCASE() 1321 TEST_EQUAL(db.get_doccount(), 0); in DEFINE_TESTCASE() 1327 TEST_EQUAL(db.get_doccount(), 0); in DEFINE_TESTCASE() 1502 TEST_EQUAL(dbr.get_doccount(), 0); 1515 TEST_EQUAL(dbr.get_doccount(), 1); 1528 TEST_EQUAL(dbr.get_doccount(), 2); [all …]
|
H A D | api_collapse.cc | 39 Xapian::MSet full_mset = enquire.get_mset(0, db.get_doccount()); in DEFINE_TESTCASE() 43 for (Xapian::docid did = 1; did <= db.get_doccount(); ++did) { in DEFINE_TESTCASE() 47 for (Xapian::doccount cmax = db.get_doccount() + 1; cmax > 0; --cmax) { in DEFINE_TESTCASE()
|
H A D | api_metadata.cc | 48 TEST_EQUAL(db.get_doccount(), 0); in DEFINE_TESTCASE() 53 TEST_EQUAL(db.get_doccount(), 0); in DEFINE_TESTCASE() 87 TEST_EQUAL(dbr.get_doccount(), 0); 91 TEST_EQUAL(db.get_doccount(), 1); 106 TEST_EQUAL(db.get_doccount(), 1);
|
H A D | api_backend.cc | 345 TEST_EQUAL(rodb.get_doccount(), 1); 350 TEST_EQUAL(rodb.get_doccount(), 2); 579 Xapian::MSet msetall = enq.get_mset(0, db.get_doccount()); in DEFINE_TESTCASE() 610 Xapian::MSet msetall = enq.get_mset(0, db.get_doccount()); in DEFINE_TESTCASE() 634 Xapian::MSet msetall = enq.get_mset(0, db.get_doccount()); in DEFINE_TESTCASE() 695 mset_expect_order(enq.get_mset(0, db.get_doccount()), 8, 6); in DEFINE_TESTCASE() 700 mset_expect_order(enq.get_mset(0, db.get_doccount()), 8, 6); in DEFINE_TESTCASE() 737 TEST_EQUAL(db.get_doccount(), 0); 745 Xapian::doccount db_size = db.get_doccount(); 758 TEST_EQUAL(db.get_doccount(), db_size); [all …]
|
/dports/databases/p5-Search-Xapian/Search-Xapian-1.2.25.4/t/ |
H A D | thread.t | 39 eval { $wdb->get_doccount(); }; 42 eval { $db->get_doccount(); }; 93 is( $wdb->get_doccount(), 0, 'check WritableDatabase' ); 96 is( $db->get_doccount(), 2, 'check Database' ); 160 is( $wdb->get_doccount(), 0, 'check WritableDatabase' ); 161 is( $db->get_doccount(), 2, 'check Database' );
|
H A D | writabledatabase.t | 56 my $doccount = $write->get_doccount(); 121 $doccount = $write->get_doccount(); 141 is($write->get_doccount(), 1, "check document count"); 158 $doccount = $write->get_doccount(); 169 is($write->get_doccount(), $doccount - 1, "check number of documents in WritableDatabase"); 180 is($write->get_doccount(), $doccount - 2, 'check WritableDatabase after deleting a document'); 192 is($write->get_doccount(), 0, 'check WritableDatabase after deleting all documents');
|
/dports/databases/p5-Search-Xapian12/Search-Xapian-1.2.25.2/t/ |
H A D | thread.t | 39 eval { $wdb->get_doccount(); }; 42 eval { $db->get_doccount(); }; 93 is( $wdb->get_doccount(), 0, 'check WritableDatabase' ); 96 is( $db->get_doccount(), 2, 'check Database' ); 160 is( $wdb->get_doccount(), 0, 'check WritableDatabase' ); 161 is( $db->get_doccount(), 2, 'check Database' );
|
H A D | writabledatabase.t | 56 my $doccount = $write->get_doccount(); 121 $doccount = $write->get_doccount(); 141 is($write->get_doccount(), 1, "check document count"); 158 $doccount = $write->get_doccount(); 169 is($write->get_doccount(), $doccount - 1, "check number of documents in WritableDatabase"); 180 is($write->get_doccount(), $doccount - 2, 'check WritableDatabase after deleting a document'); 192 is($write->get_doccount(), 0, 'check WritableDatabase after deleting all documents');
|
/dports/databases/xapian-bindings12/xapian-bindings-1.2.25/perl/t/ |
H A D | writabledatabase.t | 53 my $doccount = $write->get_doccount(); 113 $doccount = $write->get_doccount(); 133 is($write->get_doccount(), 1, "check document count"); 150 $doccount = $write->get_doccount(); 161 is($write->get_doccount(), $doccount - 1, "check number of documents in WritableDatabase"); 172 is($write->get_doccount(), $doccount - 2, 'check WritableDatabase after deleting a document'); 184 is($write->get_doccount(), 0, 'check WritableDatabase after deleting all documents');
|
/dports/databases/py-xapian/xapian-bindings-1.4.18/perl/t/ |
H A D | writabledatabase.t | 58 my $doccount = $write->get_doccount(); 123 $doccount = $write->get_doccount(); 143 is($write->get_doccount(), 1, "check document count"); 160 $doccount = $write->get_doccount(); 171 is($write->get_doccount(), $doccount - 1, "check number of documents in WritableDatabase"); 182 is($write->get_doccount(), $doccount - 2, 'check WritableDatabase after deleting a document'); 194 is($write->get_doccount(), 0, 'check WritableDatabase after deleting all documents');
|
/dports/databases/p5-Xapian/xapian-bindings-1.4.18/perl/t/ |
H A D | writabledatabase.t | 58 my $doccount = $write->get_doccount(); 123 $doccount = $write->get_doccount(); 143 is($write->get_doccount(), 1, "check document count"); 160 $doccount = $write->get_doccount(); 171 is($write->get_doccount(), $doccount - 1, "check number of documents in WritableDatabase"); 182 is($write->get_doccount(), $doccount - 2, 'check WritableDatabase after deleting a document'); 194 is($write->get_doccount(), 0, 'check WritableDatabase after deleting all documents');
|
/dports/databases/php-xapian/xapian-bindings-1.4.18/perl/t/ |
H A D | writabledatabase.t | 58 my $doccount = $write->get_doccount(); 123 $doccount = $write->get_doccount(); 143 is($write->get_doccount(), 1, "check document count"); 160 $doccount = $write->get_doccount(); 171 is($write->get_doccount(), $doccount - 1, "check number of documents in WritableDatabase"); 182 is($write->get_doccount(), $doccount - 2, 'check WritableDatabase after deleting a document'); 194 is($write->get_doccount(), 0, 'check WritableDatabase after deleting all documents');
|
/dports/databases/lua-xapian/xapian-bindings-1.4.18/perl/t/ |
H A D | writabledatabase.t | 58 my $doccount = $write->get_doccount(); 123 $doccount = $write->get_doccount(); 143 is($write->get_doccount(), 1, "check document count"); 160 $doccount = $write->get_doccount(); 171 is($write->get_doccount(), $doccount - 1, "check number of documents in WritableDatabase"); 182 is($write->get_doccount(), $doccount - 2, 'check WritableDatabase after deleting a document'); 194 is($write->get_doccount(), 0, 'check WritableDatabase after deleting all documents');
|
/dports/databases/xapian-core12/xapian-core-1.2.25/backends/multi/ |
H A D | multi_termlist.cc | 35 termfreq_factor = double(db.get_doccount()); in MultiTermList() 36 termfreq_factor /= db.internal[db_index]->get_doccount(); in MultiTermList()
|