xapian-core  1.4.19
Functions
api_metadata.cc File Reference

Test the user metadata functionality. More...

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

Go to the source code of this file.

Functions

 DEFINE_TESTCASE (metadata1, writable)
 
 DEFINE_TESTCASE (metadata2, metadata &&!inmemory)
 
 DEFINE_TESTCASE (metadata3, metadata)
 
 DEFINE_TESTCASE (metadata4, metadata &&!inmemory)
 
 DEFINE_TESTCASE (metadata5, writable)
 
 DEFINE_TESTCASE (writeread1, writable &&metadata)
 Regression test of reading after writing but not committing. More...
 

Detailed Description

Test the user metadata functionality.

Definition in file api_metadata.cc.

Function Documentation

◆ DEFINE_TESTCASE() [1/6]

DEFINE_TESTCASE ( metadata1  ,
writable   
)

◆ DEFINE_TESTCASE() [2/6]

DEFINE_TESTCASE ( metadata2  ,
metadata &&!  inmemory 
)

◆ DEFINE_TESTCASE() [3/6]

DEFINE_TESTCASE ( metadata3  ,
metadata   
)

◆ DEFINE_TESTCASE() [4/6]

DEFINE_TESTCASE ( metadata4  ,
metadata &&!  inmemory 
)

◆ DEFINE_TESTCASE() [5/6]

DEFINE_TESTCASE ( metadata5  ,
writable   
)

◆ DEFINE_TESTCASE() [6/6]

DEFINE_TESTCASE ( writeread1  ,
writable &&  metadata 
)

Regression test of reading after writing but not committing.

Definition at line 261 of file api_metadata.cc.

References Xapian::Database::get_metadata(), get_writable_database(), Xapian::WritableDatabase::set_metadata(), and TEST_EQUAL.