NCBI C++ ToolKit
|
Unit tests for the uniform search API. More...
#include <ncbi_pch.hpp>
#include <corelib/test_boost.hpp>
#include <algo/blast/api/uniform_search.hpp>
#include <algo/blast/api/local_search.hpp>
#include <algo/blast/api/remote_search.hpp>
#include <algo/blast/api/objmgr_query_data.hpp>
#include "test_objmgr.hpp"
#include "blast_test_util.hpp"
#include <objtools/blast/seqdb_reader/seqdb.hpp>
#include <objtools/blast/seqdb_reader/seqdbcommon.hpp>
#include <objects/scoremat/PssmWithParameters.hpp>
#include <util/random_gen.hpp>
#include "seqalign_cmp.hpp"
#include "seqalign_set_convert.hpp"
Go to the source code of this file.
Go to the SVN repository for this file.
Classes | |
struct | TQueryMessagesComparator |
Functions | |
static CSearchResultSet | RunMultipleProteinSearch (ISearchFactory &factory, const string &impl) |
BOOST_AUTO_TEST_SUITE (uniform_search) | |
BOOST_AUTO_TEST_CASE (SortSearchMessages_DifferentSeverity) | |
BOOST_AUTO_TEST_CASE (SortSearchMessages_DifferentErrorId) | |
BOOST_AUTO_TEST_CASE (SortSearchMessages_DifferentMessage) | |
BOOST_AUTO_TEST_CASE (PartialOrderSearchMessages) | |
BOOST_AUTO_TEST_CASE (EmptyAlignmentInCSearchResultSet) | |
BOOST_AUTO_TEST_CASE (EqualitySearchMessages) | |
BOOST_AUTO_TEST_CASE (MultipleProteinSearch) | |
BOOST_AUTO_TEST_CASE (SearchDatabase_RestrictionGiList) | |
BOOST_AUTO_TEST_CASE (SearchDatabase_Restriction) | |
Unit tests for the uniform search API.
Definition in file uniform_search_unit_test.cpp.
BOOST_AUTO_TEST_CASE | ( | EmptyAlignmentInCSearchResultSet | ) |
Definition at line 182 of file uniform_search_unit_test.cpp.
References CSeq_id_Base::e_Gi, i, input(), MSerial_AsnText, and results.
BOOST_AUTO_TEST_CASE | ( | EqualitySearchMessages | ) |
Definition at line 211 of file uniform_search_unit_test.cpp.
References eBlastSevWarning.
BOOST_AUTO_TEST_CASE | ( | MultipleProteinSearch | ) |
Definition at line 224 of file uniform_search_unit_test.cpp.
References CSearchResultSet::GetNumResults(), and RunMultipleProteinSearch().
BOOST_AUTO_TEST_CASE | ( | PartialOrderSearchMessages | ) |
Definition at line 163 of file uniform_search_unit_test.cpp.
References eBlastSevFatal, and eBlastSevWarning.
BOOST_AUTO_TEST_CASE | ( | SearchDatabase_Restriction | ) |
Definition at line 246 of file uniform_search_unit_test.cpp.
References CSeqDBGiList::AddGi(), CSearchDatabase::eBlastDbIsProtein, GI_CONST, CSearchDatabase::SetGiList(), and CSearchDatabase::SetNegativeGiList().
BOOST_AUTO_TEST_CASE | ( | SearchDatabase_RestrictionGiList | ) |
Definition at line 236 of file uniform_search_unit_test.cpp.
References CSeqDBGiList::AddGi(), CSearchDatabase::eBlastDbIsProtein, GI_CONST, CSearchDatabase::SetGiList(), and CSearchDatabase::SetNegativeGiList().
BOOST_AUTO_TEST_CASE | ( | SortSearchMessages_DifferentErrorId | ) |
Definition at line 126 of file uniform_search_unit_test.cpp.
References eBlastSevInfo, CRandom::GetRand(), i, and ct::sort().
BOOST_AUTO_TEST_CASE | ( | SortSearchMessages_DifferentMessage | ) |
Definition at line 144 of file uniform_search_unit_test.cpp.
References eBlastSevInfo, CRandom::GetRand(), i, NStr::IntToString(), msg(), and ct::sort().
BOOST_AUTO_TEST_CASE | ( | SortSearchMessages_DifferentSeverity | ) |
Definition at line 107 of file uniform_search_unit_test.cpp.
References eBlastSevError, eBlastSevFatal, eBlastSevInfo, eBlastSevWarning, i, and ct::sort().
BOOST_AUTO_TEST_SUITE | ( | uniform_search | ) |
|
static |
Definition at line 75 of file uniform_search_unit_test.cpp.
References CSeq_id_Base::e_Gi, CSearchDatabase::eBlastDbIsProtein, eBlastp, ISearchFactory::GetOptions(), ISearchFactory::GetSeqSearch(), CTestObjMgr::Instance(), CBlastOptionsHandle::SetEvalueThreshold(), CBlastOptionsHandle::SetHitlistSize(), and subject.
Referenced by BOOST_AUTO_TEST_CASE().