Storage Engine API
mongo::KVHarnessHelper Class Referenceabstract

Creates a harness for generic KVEngine testing of all KVEngine implementations. More...

#include <kv_engine_test_harness.h>

Detailed Description

Creates a harness for generic KVEngine testing of all KVEngine implementations.

A particular KVHarnessHelper implementation (with a particular KVEngine implementation) will implement registerFactory() and create() such that generic unit tests can create() and test the particular KVHarnessHelper implementation. This library can be pulled into a particular implementation's CppUnitTest to exercise the generic test coverage on that implementation.

Public Member Functions

virtual ~KVHarnessHelper ()
 
virtual KVEnginegetEngine ()=0
 
virtual KVEnginerestartEngine ()=0
 

Static Public Member Functions

static std::unique_ptr< KVHarnessHelpercreate ()
 
static void registerFactory (stdx::function< std::unique_ptr< KVHarnessHelper >()> factory)
 

Constructor & Destructor Documentation

◆ ~KVHarnessHelper()

virtual mongo::KVHarnessHelper::~KVHarnessHelper ( )
inlinevirtual

Member Function Documentation

◆ create()

std::unique_ptr< KVHarnessHelper > mongo::KVHarnessHelper::create ( )
static

◆ getEngine()

virtual KVEngine* mongo::KVHarnessHelper::getEngine ( )
pure virtual

◆ registerFactory()

void mongo::KVHarnessHelper::registerFactory ( stdx::function< std::unique_ptr< KVHarnessHelper >()>  factory)
static

◆ restartEngine()

virtual KVEngine* mongo::KVHarnessHelper::restartEngine ( )
pure virtual

The documentation for this class was generated from the following files: