NCBI C++ ToolKit
|
#include <ncbi_pch.hpp>
#include <corelib/test_boost.hpp>
#include <algo/blast/api/blast_aux.hpp>
#include "seqsrc_mock.hpp"
#include "test_objmgr.hpp"
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 | |
#define BLAST_SECONDARY_SOURCE 1 |
Definition at line 35 of file mockseqsrc1_unit_test.cpp.
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 | ( | TestCreation | ) |
Definition at line 60 of file mockseqsrc1_unit_test.cpp.
References NULL.
BOOST_AUTO_TEST_CASE | ( | TestCreationFailure | ) |
Definition at line 136 of file mockseqsrc1_unit_test.cpp.
References BlastSeqSrcGetInitError(), eMBSS_Invalid, CBlastSeqSrc::Get(), MockBlastSeqSrcInit(), NULL, and sfree.
BOOST_AUTO_TEST_CASE | ( | TestGetInitError | ) |
Definition at line 109 of file mockseqsrc1_unit_test.cpp.
References BlastSeqSrcGetInitError(), and NULL.
BOOST_AUTO_TEST_CASE | ( | TestGetName | ) |
Definition at line 84 of file mockseqsrc1_unit_test.cpp.
References BlastSeqSrcGetName(), NULL, and str().
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 | ( | TestGetSequence | ) |
Definition at line 97 of file mockseqsrc1_unit_test.cpp.
References BLAST_SEQSRC_ERROR, BlastSeqSrcGetSequence(), and ctll::empty().
BOOST_AUTO_TEST_CASE | ( | TestIsProtein | ) |
Definition at line 89 of file mockseqsrc1_unit_test.cpp.
References BlastSeqSrcGetIsProt(), and FALSE.
BOOST_AUTO_TEST_CASE | ( | TestIterationUseCase | ) |
Definition at line 122 of file mockseqsrc1_unit_test.cpp.
References BLAST_SEQSRC_EOF, BlastSeqSrcIteratorNew(), BlastSeqSrcIteratorNext(), i, and BlastSeqSrcGetSeqArg::oid.
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 | ( | TestMaxSeqLen | ) |
Definition at line 69 of file mockseqsrc1_unit_test.cpp.
References BLAST_SEQSRC_ERROR, and BlastSeqSrcGetMaxSeqLen().
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 | ( | TestTotLen | ) |
Definition at line 79 of file mockseqsrc1_unit_test.cpp.
References BLAST_SEQSRC_ERROR, and BlastSeqSrcGetTotLen().
USING_NCBI_SCOPE |
Definition at line 42 of file mockseqsrc1_unit_test.cpp.