xapian-core  1.4.27
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, metadata)
 
 DEFINE_TESTCASE (metadata2, metadata &&writable)
 
 DEFINE_TESTCASE (metadata3, metadata &&writable &&!inmemory)
 
 DEFINE_TESTCASE (metadata4, metadata &&writable)
 
 DEFINE_TESTCASE (metadata5, metadata &&writable &&!inmemory)
 
 DEFINE_TESTCASE (metadata6, writable)
 
 DEFINE_TESTCASE (writeread1, metadata &&writable)
 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/7]

DEFINE_TESTCASE ( metadata1  ,
metadata   
)

◆ DEFINE_TESTCASE() [2/7]

DEFINE_TESTCASE ( metadata2  ,
metadata &&  writable 
)

◆ DEFINE_TESTCASE() [3/7]

DEFINE_TESTCASE ( metadata3  ,
metadata &&writable &&!  inmemory 
)

◆ DEFINE_TESTCASE() [4/7]

DEFINE_TESTCASE ( metadata4  ,
metadata &&  writable 
)

◆ DEFINE_TESTCASE() [5/7]

DEFINE_TESTCASE ( metadata5  ,
metadata &&writable &&!  inmemory 
)

◆ DEFINE_TESTCASE() [6/7]

DEFINE_TESTCASE ( metadata6  ,
writable   
)

◆ DEFINE_TESTCASE() [7/7]

DEFINE_TESTCASE ( writeread1  ,
metadata &&  writable 
)

Regression test of reading after writing but not committing.

Definition at line 290 of file api_metadata.cc.

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