NCBI C++ ToolKit
Classes | Macros | Functions | Variables
mockseqsrc1_unit_test.cpp File Reference
#include <ncbi_pch.hpp>
#include <corelib/test_boost.hpp>
#include <algo/blast/api/blast_aux.hpp>
#include "seqsrc_mock.hpp"
#include "test_objmgr.hpp"
+ Include dependency graph for mockseqsrc1_unit_test.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

struct  FailingMockSeqSrcTestFixture
 Initializes m_SeqSrc with a BlastSeqSrc that always fails. More...
 

Macros

#define BLAST_SECONDARY_SOURCE   1
 

Functions

 BOOST_AUTO_TEST_CASE (TestCreation)
 
 BOOST_AUTO_TEST_CASE (TestNumberOfSeqs)
 
 BOOST_AUTO_TEST_CASE (TestMaxSeqLen)
 
 BOOST_AUTO_TEST_CASE (TestAvgSeqLen)
 
 BOOST_AUTO_TEST_CASE (TestTotLen)
 
 BOOST_AUTO_TEST_CASE (TestGetName)
 
 BOOST_AUTO_TEST_CASE (TestIsProtein)
 
 BOOST_AUTO_TEST_CASE (TestGetSequence)
 
 BOOST_AUTO_TEST_CASE (TestGetSeqLen)
 
 BOOST_AUTO_TEST_CASE (TestGetInitError)
 
 BOOST_AUTO_TEST_CASE (TestIteratorCreation)
 This shouldn't really need to be here. More...
 
 BOOST_AUTO_TEST_CASE (TestIterationUseCase)
 
 BOOST_AUTO_TEST_CASE (TestCreationFailure)
 

Variables

 USING_NCBI_SCOPE
 

Macro Definition Documentation

◆ BLAST_SECONDARY_SOURCE

#define BLAST_SECONDARY_SOURCE   1

Definition at line 35 of file mockseqsrc1_unit_test.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/13]

BOOST_AUTO_TEST_CASE ( TestAvgSeqLen  )

Definition at line 74 of file mockseqsrc1_unit_test.cpp.

References BLAST_SEQSRC_ERROR, and BlastSeqSrcGetAvgSeqLen().

◆ BOOST_AUTO_TEST_CASE() [2/13]

BOOST_AUTO_TEST_CASE ( TestCreation  )

Definition at line 60 of file mockseqsrc1_unit_test.cpp.

References NULL.

◆ BOOST_AUTO_TEST_CASE() [3/13]

BOOST_AUTO_TEST_CASE ( TestCreationFailure  )

◆ BOOST_AUTO_TEST_CASE() [4/13]

BOOST_AUTO_TEST_CASE ( TestGetInitError  )

Definition at line 109 of file mockseqsrc1_unit_test.cpp.

References BlastSeqSrcGetInitError(), and NULL.

◆ BOOST_AUTO_TEST_CASE() [5/13]

BOOST_AUTO_TEST_CASE ( TestGetName  )

Definition at line 84 of file mockseqsrc1_unit_test.cpp.

References BlastSeqSrcGetName(), NULL, and str().

◆ BOOST_AUTO_TEST_CASE() [6/13]

BOOST_AUTO_TEST_CASE ( TestGetSeqLen  )

Definition at line 103 of file mockseqsrc1_unit_test.cpp.

References BLAST_SEQSRC_ERROR, BlastSeqSrcGetSeqLen(), and dummy.

◆ BOOST_AUTO_TEST_CASE() [7/13]

BOOST_AUTO_TEST_CASE ( TestGetSequence  )

◆ BOOST_AUTO_TEST_CASE() [8/13]

BOOST_AUTO_TEST_CASE ( TestIsProtein  )

Definition at line 89 of file mockseqsrc1_unit_test.cpp.

References BlastSeqSrcGetIsProt(), and FALSE.

◆ BOOST_AUTO_TEST_CASE() [9/13]

BOOST_AUTO_TEST_CASE ( TestIterationUseCase  )

◆ BOOST_AUTO_TEST_CASE() [10/13]

BOOST_AUTO_TEST_CASE ( TestIteratorCreation  )

This shouldn't really need to be here.

Definition at line 115 of file mockseqsrc1_unit_test.cpp.

References BlastSeqSrcIteratorFree(), BlastSeqSrcIteratorNew(), and NULL.

◆ BOOST_AUTO_TEST_CASE() [11/13]

BOOST_AUTO_TEST_CASE ( TestMaxSeqLen  )

Definition at line 69 of file mockseqsrc1_unit_test.cpp.

References BLAST_SEQSRC_ERROR, and BlastSeqSrcGetMaxSeqLen().

◆ BOOST_AUTO_TEST_CASE() [12/13]

BOOST_AUTO_TEST_CASE ( TestNumberOfSeqs  )

Definition at line 64 of file mockseqsrc1_unit_test.cpp.

References BLAST_SEQSRC_ERROR, and BlastSeqSrcGetNumSeqs().

◆ BOOST_AUTO_TEST_CASE() [13/13]

BOOST_AUTO_TEST_CASE ( TestTotLen  )

Definition at line 79 of file mockseqsrc1_unit_test.cpp.

References BLAST_SEQSRC_ERROR, and BlastSeqSrcGetTotLen().

Variable Documentation

◆ USING_NCBI_SCOPE

USING_NCBI_SCOPE

Definition at line 42 of file mockseqsrc1_unit_test.cpp.

Modified on Wed Sep 04 14:59:43 2024 by modify_doxy.py rev. 669887