NCBI C++ ToolKit
Macros | Functions
seqsrc_mock.cpp File Reference

Mock object implementations of the BlastSeqSrc interface. More...

#include <ncbi_pch.hpp>
#include "seqsrc_mock.hpp"
#include <algo/blast/core/blast_seqsrc_impl.h>
#include <algo/blast/core/blast_util.h>
#include "test_objmgr.hpp"
#include <blast_objmgr_priv.hpp>
#include <corelib/ncbistr.hpp>
+ Include dependency graph for seqsrc_mock.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Macros

#define BLAST_SECONDARY_SOURCE   1
 

Functions

static Int2 s_MockBlastSeqSrcGetSequence (void *mock_handle, BlastSeqSrcGetSeqArg *arg)
 
static Int4 s_MockBlastSeqSrcGetSeqLen (void *mock_handle, void *oid)
 
static Int4 s_MockBlastSeqSrcGetNumSeqs (void *mock_handle, void *)
 
static Int4 s_MockBlastSeqSrcGetMaxSeqLen (void *mock_handle, void *)
 
static Int4 s_MockBlastSeqSrcGetAvgSeqLen (void *mock_handle, void *)
 
static Int8 s_MockBlastSeqSrcGetTotLen (void *mock_handle, void *)
 
static const char * s_MockBlastSeqSrcGetSeqSrcName (void *mock_handle, void *)
 
static Boolean s_MockBlastSeqSrcGetIsProt (void *mock_handle, void *)
 
static void s_MockBlastSeqSrcReleaseSequence (void *mock_handle, BlastSeqSrcGetSeqArg *arg)
 
static Int4 s_MockBlastSeqSrcItrNext (void *mock_handle, BlastSeqSrcIterator *itr)
 
BlastSeqSrcs_MockBlastSeqSrcFree (BlastSeqSrc *seq_src)
 
static BlastSeqSrcs_MockBlastSeqSrcNew (BlastSeqSrc *retval, void *args)
 
BlastSeqSrcMockBlastSeqSrcInit (EMockBlastSeqSrcMode mode)
 Mock BlastSeqSrc initialization function. More...
 

Detailed Description

Mock object implementations of the BlastSeqSrc interface.

Definition in file seqsrc_mock.cpp.

Macro Definition Documentation

◆ BLAST_SECONDARY_SOURCE

#define BLAST_SECONDARY_SOURCE   1

Definition at line 36 of file seqsrc_mock.cpp.

Function Documentation

◆ MockBlastSeqSrcInit()

BlastSeqSrc* MockBlastSeqSrcInit ( EMockBlastSeqSrcMode  mode)

◆ s_MockBlastSeqSrcFree()

BlastSeqSrc* s_MockBlastSeqSrcFree ( BlastSeqSrc seq_src)

Definition at line 256 of file seqsrc_mock.cpp.

References _BlastSeqSrcImpl_GetDataStructure(), and NULL.

Referenced by s_MockBlastSeqSrcNew().

◆ s_MockBlastSeqSrcGetAvgSeqLen()

static Int4 s_MockBlastSeqSrcGetAvgSeqLen ( void *  mock_handle,
void *   
)
static

Definition at line 207 of file seqsrc_mock.cpp.

References ASSERT.

Referenced by s_MockBlastSeqSrcNew().

◆ s_MockBlastSeqSrcGetIsProt()

static Boolean s_MockBlastSeqSrcGetIsProt ( void *  mock_handle,
void *   
)
static

Definition at line 231 of file seqsrc_mock.cpp.

References ASSERT.

Referenced by s_MockBlastSeqSrcNew().

◆ s_MockBlastSeqSrcGetMaxSeqLen()

static Int4 s_MockBlastSeqSrcGetMaxSeqLen ( void *  mock_handle,
void *   
)
static

Definition at line 199 of file seqsrc_mock.cpp.

References ASSERT.

Referenced by s_MockBlastSeqSrcNew().

◆ s_MockBlastSeqSrcGetNumSeqs()

static Int4 s_MockBlastSeqSrcGetNumSeqs ( void *  mock_handle,
void *   
)
static

Definition at line 191 of file seqsrc_mock.cpp.

References ASSERT.

Referenced by s_MockBlastSeqSrcNew().

◆ s_MockBlastSeqSrcGetSeqLen()

static Int4 s_MockBlastSeqSrcGetSeqLen ( void *  mock_handle,
void *  oid 
)
static

Definition at line 180 of file seqsrc_mock.cpp.

References ASSERT.

Referenced by s_MockBlastSeqSrcNew().

◆ s_MockBlastSeqSrcGetSeqSrcName()

static const char* s_MockBlastSeqSrcGetSeqSrcName ( void *  mock_handle,
void *   
)
static

Definition at line 223 of file seqsrc_mock.cpp.

References ASSERT.

Referenced by s_MockBlastSeqSrcNew().

◆ s_MockBlastSeqSrcGetSequence()

static Int2 s_MockBlastSeqSrcGetSequence ( void *  mock_handle,
BlastSeqSrcGetSeqArg arg 
)
static

Definition at line 170 of file seqsrc_mock.cpp.

References ASSERT.

Referenced by s_MockBlastSeqSrcNew().

◆ s_MockBlastSeqSrcGetTotLen()

static Int8 s_MockBlastSeqSrcGetTotLen ( void *  mock_handle,
void *   
)
static

Definition at line 215 of file seqsrc_mock.cpp.

References ASSERT.

Referenced by s_MockBlastSeqSrcNew().

◆ s_MockBlastSeqSrcItrNext()

static Int4 s_MockBlastSeqSrcItrNext ( void *  mock_handle,
BlastSeqSrcIterator itr 
)
static

Definition at line 248 of file seqsrc_mock.cpp.

References ASSERT.

Referenced by s_MockBlastSeqSrcNew().

◆ s_MockBlastSeqSrcNew()

static BlastSeqSrc* s_MockBlastSeqSrcNew ( BlastSeqSrc retval,
void *  args 
)
static

◆ s_MockBlastSeqSrcReleaseSequence()

static void s_MockBlastSeqSrcReleaseSequence ( void *  mock_handle,
BlastSeqSrcGetSeqArg arg 
)
static

Definition at line 239 of file seqsrc_mock.cpp.

References ASSERT.

Referenced by s_MockBlastSeqSrcNew().

Modified on Fri Feb 23 11:43:08 2024 by modify_doxy.py rev. 669887