NCBI C++ ToolKit
Classes | Functions
remote_blast_unit_test.cpp File Reference
#include <ncbi_pch.hpp>
#include <corelib/test_boost.hpp>
#include <objtools/blast/services/blast_services.hpp>
#include <algo/blast/api/remote_blast.hpp>
#include "test_objmgr.hpp"
#include <objects/seqloc/Seq_id.hpp>
#include <objects/seqset/Bioseq_set.hpp>
#include <objects/seqalign/Seq_align.hpp>
#include <algo/blast/api/blast_options.hpp>
#include <algo/blast/api/blast_rps_options.hpp>
#include <algo/blast/api/blast_nucl_options.hpp>
#include <algo/blast/api/disc_nucl_options.hpp>
#include <algo/blast/api/objmgr_query_data.hpp>
#include <algo/blast/blastinput/blast_fasta_input.hpp>
#include <algo/blast/blastinput/blast_input_aux.hpp>
#include <serial/serial.hpp>
#include <serial/objostr.hpp>
#include <serial/exception.hpp>
#include <util/range.hpp>
+ Include dependency graph for remote_blast_unit_test.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

class  CDiagLevelGuard
 

Functions

 NCBITEST_INIT_TREE ()
 
static int x_CountHits (const string &rid)
 
static void x_PushPairVec (vector< pair< string, string > > &rids, string a, string b)
 
template<class TOBJ >
string x_Stringify (TOBJ &obj)
 
 BOOST_AUTO_TEST_CASE (MaskedQueryRegions)
 
 BOOST_AUTO_TEST_CASE (CheckRemoteRPSBlastOptionsHandle)
 
 BOOST_AUTO_TEST_CASE (CheckBlastnMasks)
 
 BOOST_AUTO_TEST_CASE (CheckBlastpMasks)
 
 BOOST_AUTO_TEST_CASE (CheckBlastxMasks)
 
 BOOST_AUTO_TEST_CASE (SetFilteringOptions)
 
 BOOST_AUTO_TEST_CASE (SubmitNullDatabase)
 
 BOOST_AUTO_TEST_CASE (SubmitNullQueries)
 
 BOOST_AUTO_TEST_CASE_TIMEOUT (CheckPrimerBlastRID, 45)
 
 BOOST_AUTO_TEST_CASE (CheckPrimerBlastRID)
 
 BOOST_AUTO_TEST_CASE (CheckRID)
 
 BOOST_AUTO_TEST_CASE (CheckColoRID)
 
 BOOST_AUTO_TEST_CASE (GetErrorsFromFailedRID)
 
 BOOST_AUTO_TEST_CASE (RetrieveInvalidRID)
 
 BOOST_AUTO_TEST_CASE (RetrieveRIDWithError)
 
 BOOST_AUTO_TEST_CASE (RetrieveRIDWithSIGXCPU)
 
 BOOST_AUTO_TEST_CASE (CheckRemoteNuclOptionsHandle)
 
 BOOST_AUTO_TEST_CASE (CheckRemoteDiscNuclOptionsHandle)
 
 BOOST_AUTO_TEST_CASE (RetrieveMultipleQueryResults)
 
 BOOST_AUTO_TEST_CASE (RetrieveQuerySet)
 
 BOOST_AUTO_TEST_CASE (GetRequestInfo)
 
 BOOST_AUTO_TEST_CASE (FetchQuerySequence)
 
 BOOST_AUTO_TEST_CASE (FetchQuerySequence_NotFound)
 
 BOOST_AUTO_TEST_CASE (SearchOptionsFromRID)
 
 BOOST_AUTO_TEST_CASE (CheckLongLifeHits)
 
 BOOST_AUTO_TEST_CASE (CheckShortRIDs)
 
 BOOST_AUTO_TEST_CASE (CheckDuplicateOptions)
 
 BOOST_AUTO_TEST_CASE (GetSearchStrategy_FullQuery)
 
 BOOST_AUTO_TEST_CASE (GetSearchStrategy_QueryWithRange)
 
 BOOST_AUTO_TEST_CASE (GetSearchStrategy_QueryWithLocalIds)
 
 BOOST_AUTO_TEST_CASE (GetSearchStrategy_QueryWithGIs)
 
 BOOST_AUTO_TEST_CASE (ReadSearchStrategy_TextAsn1)
 
 BOOST_AUTO_TEST_CASE (ReadSearchStrategy_Xml)
 
 BOOST_AUTO_TEST_CASE (ReadSearchStrategy_Invalid)
 
 BOOST_AUTO_TEST_CASE (ReadArchiveFormat)
 
 BOOST_AUTO_TEST_CASE (ReadBadArchiveFormat)
 
 BOOST_AUTO_TEST_CASE (ReadBl2seqArchiveFormat)
 
 BOOST_AUTO_TEST_CASE (ReadArchiveFormatMultipleQueries)
 
 BOOST_AUTO_TEST_CASE (GetBlast4Parameters)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/38]

BOOST_AUTO_TEST_CASE ( CheckBlastnMasks  )

◆ BOOST_AUTO_TEST_CASE() [2/38]

BOOST_AUTO_TEST_CASE ( CheckBlastpMasks  )

◆ BOOST_AUTO_TEST_CASE() [3/38]

BOOST_AUTO_TEST_CASE ( CheckBlastxMasks  )

◆ BOOST_AUTO_TEST_CASE() [4/38]

BOOST_AUTO_TEST_CASE ( CheckColoRID  )

◆ BOOST_AUTO_TEST_CASE() [5/38]

BOOST_AUTO_TEST_CASE ( CheckDuplicateOptions  )

Definition at line 988 of file remote_blast_unit_test.cpp.

References CBlastOptions::eRemote, ITERATE, and rapidjson::value.

◆ BOOST_AUTO_TEST_CASE() [6/38]

BOOST_AUTO_TEST_CASE ( CheckLongLifeHits  )

Definition at line 971 of file remote_blast_unit_test.cpp.

References x_CountHits().

◆ BOOST_AUTO_TEST_CASE() [7/38]

BOOST_AUTO_TEST_CASE ( CheckPrimerBlastRID  )

◆ BOOST_AUTO_TEST_CASE() [8/38]

BOOST_AUTO_TEST_CASE ( CheckRemoteDiscNuclOptionsHandle  )

◆ BOOST_AUTO_TEST_CASE() [9/38]

BOOST_AUTO_TEST_CASE ( CheckRemoteNuclOptionsHandle  )

◆ BOOST_AUTO_TEST_CASE() [10/38]

BOOST_AUTO_TEST_CASE ( CheckRemoteRPSBlastOptionsHandle  )

◆ BOOST_AUTO_TEST_CASE() [11/38]

BOOST_AUTO_TEST_CASE ( CheckRID  )

◆ BOOST_AUTO_TEST_CASE() [12/38]

BOOST_AUTO_TEST_CASE ( CheckShortRIDs  )

Definition at line 980 of file remote_blast_unit_test.cpp.

References x_CountHits().

◆ BOOST_AUTO_TEST_CASE() [13/38]

BOOST_AUTO_TEST_CASE ( FetchQuerySequence  )

◆ BOOST_AUTO_TEST_CASE() [14/38]

BOOST_AUTO_TEST_CASE ( FetchQuerySequence_NotFound  )

◆ BOOST_AUTO_TEST_CASE() [15/38]

BOOST_AUTO_TEST_CASE ( GetBlast4Parameters  )

◆ BOOST_AUTO_TEST_CASE() [16/38]

BOOST_AUTO_TEST_CASE ( GetErrorsFromFailedRID  )

◆ BOOST_AUTO_TEST_CASE() [17/38]

BOOST_AUTO_TEST_CASE ( GetRequestInfo  )

◆ BOOST_AUTO_TEST_CASE() [18/38]

BOOST_AUTO_TEST_CASE ( GetSearchStrategy_FullQuery  )

◆ BOOST_AUTO_TEST_CASE() [19/38]

BOOST_AUTO_TEST_CASE ( GetSearchStrategy_QueryWithGIs  )

◆ BOOST_AUTO_TEST_CASE() [20/38]

BOOST_AUTO_TEST_CASE ( GetSearchStrategy_QueryWithLocalIds  )

◆ BOOST_AUTO_TEST_CASE() [21/38]

BOOST_AUTO_TEST_CASE ( GetSearchStrategy_QueryWithRange  )

◆ BOOST_AUTO_TEST_CASE() [22/38]

BOOST_AUTO_TEST_CASE ( MaskedQueryRegions  )

◆ BOOST_AUTO_TEST_CASE() [23/38]

BOOST_AUTO_TEST_CASE ( ReadArchiveFormat  )

◆ BOOST_AUTO_TEST_CASE() [24/38]

BOOST_AUTO_TEST_CASE ( ReadArchiveFormatMultipleQueries  )

◆ BOOST_AUTO_TEST_CASE() [25/38]

BOOST_AUTO_TEST_CASE ( ReadBadArchiveFormat  )

Definition at line 1300 of file remote_blast_unit_test.cpp.

References in().

◆ BOOST_AUTO_TEST_CASE() [26/38]

BOOST_AUTO_TEST_CASE ( ReadBl2seqArchiveFormat  )

◆ BOOST_AUTO_TEST_CASE() [27/38]

BOOST_AUTO_TEST_CASE ( ReadSearchStrategy_Invalid  )

Definition at line 1272 of file remote_blast_unit_test.cpp.

References ExtractBlast4Request(), and in().

◆ BOOST_AUTO_TEST_CASE() [28/38]

BOOST_AUTO_TEST_CASE ( ReadSearchStrategy_TextAsn1  )

◆ BOOST_AUTO_TEST_CASE() [29/38]

BOOST_AUTO_TEST_CASE ( ReadSearchStrategy_Xml  )

◆ BOOST_AUTO_TEST_CASE() [30/38]

BOOST_AUTO_TEST_CASE ( RetrieveInvalidRID  )

◆ BOOST_AUTO_TEST_CASE() [31/38]

BOOST_AUTO_TEST_CASE ( RetrieveMultipleQueryResults  )

Definition at line 738 of file remote_blast_unit_test.cpp.

References CRemoteBlast::GetSeqAlignSets(), i, and int.

◆ BOOST_AUTO_TEST_CASE() [32/38]

BOOST_AUTO_TEST_CASE ( RetrieveQuerySet  )

Definition at line 761 of file remote_blast_unit_test.cpp.

References CRemoteBlast::GetSeqAlignSets(), i, and int.

◆ BOOST_AUTO_TEST_CASE() [33/38]

BOOST_AUTO_TEST_CASE ( RetrieveRIDWithError  )

◆ BOOST_AUTO_TEST_CASE() [34/38]

BOOST_AUTO_TEST_CASE ( RetrieveRIDWithSIGXCPU  )

◆ BOOST_AUTO_TEST_CASE() [35/38]

BOOST_AUTO_TEST_CASE ( SearchOptionsFromRID  )

◆ BOOST_AUTO_TEST_CASE() [36/38]

BOOST_AUTO_TEST_CASE ( SetFilteringOptions  )

◆ BOOST_AUTO_TEST_CASE() [37/38]

BOOST_AUTO_TEST_CASE ( SubmitNullDatabase  )

◆ BOOST_AUTO_TEST_CASE() [38/38]

BOOST_AUTO_TEST_CASE ( SubmitNullQueries  )

◆ BOOST_AUTO_TEST_CASE_TIMEOUT()

BOOST_AUTO_TEST_CASE_TIMEOUT ( CheckPrimerBlastRID  ,
45   
)

◆ NCBITEST_INIT_TREE()

NCBITEST_INIT_TREE ( )

Definition at line 59 of file remote_blast_unit_test.cpp.

References env, ERR_POST, NCBITEST_DISABLE, NStr::StringToBool(), and Warning().

◆ x_CountHits()

static int x_CountHits ( const string rid)
static

Definition at line 76 of file remote_blast_unit_test.cpp.

References CRemoteBlast::GetSeqAlignSets(), and i.

Referenced by BOOST_AUTO_TEST_CASE().

◆ x_PushPairVec()

static void x_PushPairVec ( vector< pair< string, string > > &  rids,
string  a,
string  b 
)
static

Definition at line 94 of file remote_blast_unit_test.cpp.

References a, and b.

Referenced by BOOST_AUTO_TEST_CASE().

◆ x_Stringify()

template<class TOBJ >
string x_Stringify ( TOBJ &  obj)

Definition at line 104 of file remote_blast_unit_test.cpp.

References eSerial_AsnText, and CObjectOStream::Open().

Modified on Sun Apr 14 05:25:46 2024 by modify_doxy.py rev. 669887