NCBI C++ ToolKit
Classes | Enumerations | Functions
seqsrc_mock.hpp File Reference

Mock object which implements the BlastSeqSrc interface for testing purposes. More...

#include <algo/blast/core/blast_seqsrc.h>
#include <util/random_gen.hpp>
+ Include dependency graph for seqsrc_mock.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

struct  IMockBlastSeqSrc
 Abstract base class which defines a common interface for mock BlastSeqSrc objects to implement. More...
 
struct  CAlwaysFailMockBlastSeqSrc
 Mock BlastSeqSrc implementation which always fails. More...
 
class  CRandomlyFailMockBlastSeqSrc
 Mock BlastSeqSrc implementation which fails randomly. More...
 

Enumerations

enum  EMockBlastSeqSrcMode { eMBSS_AlwaysFail , eMBSS_RandomlyFail , eMBSS_Invalid }
 

Functions

BlastSeqSrcMockBlastSeqSrcInit (EMockBlastSeqSrcMode mode=eMBSS_AlwaysFail)
 Mock BlastSeqSrc initialization function. More...
 

Detailed Description

Mock object which implements the BlastSeqSrc interface for testing purposes.

Definition in file seqsrc_mock.hpp.

Enumeration Type Documentation

◆ EMockBlastSeqSrcMode

Enumerator
eMBSS_AlwaysFail 

returns failure on all operations

eMBSS_RandomlyFail 

returns failure randomly on operations

eMBSS_Invalid 

Sets a limit on the number of valid mock modes.

Definition at line 40 of file seqsrc_mock.hpp.

Function Documentation

◆ MockBlastSeqSrcInit()

BlastSeqSrc* MockBlastSeqSrcInit ( EMockBlastSeqSrcMode  mode = eMBSS_AlwaysFail)
Modified on Tue Apr 23 07:40:02 2024 by modify_doxy.py rev. 669887