NCBI C++ ToolKit
Classes | Macros | Functions | Variables
mockseqsrc2_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 mockseqsrc2_unit_test.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

struct  RandomlyFailingMockSeqSrcTestFixture
 Initializes m_SeqSrc with a BlastSeqSrc that fails randomly. More...
 

Macros

#define BLAST_SECONDARY_SOURCE   1
 

Functions

 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 (TestGetSequenceValidOid)
 
 BOOST_AUTO_TEST_CASE (TestGetSequenceAnyOid)
 
 BOOST_AUTO_TEST_CASE (TestGetSequenceEOF)
 
 BOOST_AUTO_TEST_CASE (TestGetSeqLenValidOid)
 
 BOOST_AUTO_TEST_CASE (TestGetSeqLenAnyOid)
 
 BOOST_AUTO_TEST_CASE (TestGetInitError)
 
 BOOST_AUTO_TEST_CASE (TestIterationUseCase)
 

Variables

 USING_NCBI_SCOPE
 

Macro Definition Documentation

◆ BLAST_SECONDARY_SOURCE

#define BLAST_SECONDARY_SOURCE   1

Definition at line 36 of file mockseqsrc2_unit_test.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/13]

BOOST_AUTO_TEST_CASE ( TestAvgSeqLen  )

◆ BOOST_AUTO_TEST_CASE() [2/13]

BOOST_AUTO_TEST_CASE ( TestGetInitError  )

Definition at line 191 of file mockseqsrc2_unit_test.cpp.

References BlastSeqSrcGetInitError(), and NULL.

◆ BOOST_AUTO_TEST_CASE() [3/13]

BOOST_AUTO_TEST_CASE ( TestGetName  )

◆ BOOST_AUTO_TEST_CASE() [4/13]

BOOST_AUTO_TEST_CASE ( TestGetSeqLenAnyOid  )

Definition at line 182 of file mockseqsrc2_unit_test.cpp.

References BLAST_SEQSRC_ERROR, and BlastSeqSrcGetSeqLen().

◆ BOOST_AUTO_TEST_CASE() [5/13]

BOOST_AUTO_TEST_CASE ( TestGetSeqLenValidOid  )

◆ BOOST_AUTO_TEST_CASE() [6/13]

BOOST_AUTO_TEST_CASE ( TestGetSequenceAnyOid  )

◆ BOOST_AUTO_TEST_CASE() [7/13]

BOOST_AUTO_TEST_CASE ( TestGetSequenceEOF  )

◆ BOOST_AUTO_TEST_CASE() [8/13]

BOOST_AUTO_TEST_CASE ( TestGetSequenceValidOid  )

◆ BOOST_AUTO_TEST_CASE() [9/13]

BOOST_AUTO_TEST_CASE ( TestIsProtein  )

Definition at line 106 of file mockseqsrc2_unit_test.cpp.

References BlastSeqSrcGetIsProt(), FALSE, and TRUE.

◆ BOOST_AUTO_TEST_CASE() [10/13]

BOOST_AUTO_TEST_CASE ( TestIterationUseCase  )

◆ BOOST_AUTO_TEST_CASE() [11/13]

BOOST_AUTO_TEST_CASE ( TestMaxSeqLen  )

◆ BOOST_AUTO_TEST_CASE() [12/13]

BOOST_AUTO_TEST_CASE ( TestNumberOfSeqs  )

◆ BOOST_AUTO_TEST_CASE() [13/13]

BOOST_AUTO_TEST_CASE ( TestTotLen  )

Variable Documentation

◆ USING_NCBI_SCOPE

USING_NCBI_SCOPE

Definition at line 43 of file mockseqsrc2_unit_test.cpp.

Modified on Mon Apr 22 04:04:39 2024 by modify_doxy.py rev. 669887