NCBI C++ ToolKit
Functions | Variables
blastoptions_unit_test.cpp File Reference

Unit tests for the BLAST options. More...

#include <ncbi_pch.hpp>
#include <corelib/test_boost.hpp>
#include <algo/blast/api/bl2seq.hpp>
#include "blast_setup.hpp"
#include "blast_objmgr_priv.hpp"
#include <algo/blast/core/blast_setup.h>
#include "test_objmgr.hpp"
#include <algo/blast/core/hspfilter_besthit.h>
#include <objects/blast/Blast4_parameter.hpp>
#include <objects/blast/Blast4_parameters.hpp>
+ Include dependency graph for blastoptions_unit_test.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Functions

 USING_SCOPE (blast)
 
 USING_SCOPE (objects)
 
 BOOST_AUTO_TEST_CASE (TestTasksDefinitionsAndDocumentation)
 
 BOOST_AUTO_TEST_CASE (RemoteOptionsTest)
 
 BOOST_AUTO_TEST_CASE (BogusProgramWithCreate)
 
 BOOST_AUTO_TEST_CASE (UnifiedPOptionsTest)
 
 BOOST_AUTO_TEST_CASE (GetSuggestedThresholdTest)
 
 BOOST_AUTO_TEST_CASE (GetSuggestedWindowSizeTest)
 
 BOOST_AUTO_TEST_CASE (GetProteinGapExistenceExtendParamsTest)
 
 BOOST_AUTO_TEST_CASE (GetNucleotideGapExistenceExtendParamsTest)
 
 BOOST_AUTO_TEST_CASE (FilterSetUpOptionsDustTest)
 
 BOOST_AUTO_TEST_CASE (FilterSetUpOptionsSegTest)
 
 BOOST_AUTO_TEST_CASE (FilterSetUpOptionsNULLInput)
 
 BOOST_AUTO_TEST_CASE (OptionsFreeNULLInput)
 
static void s_FillSearchSpace (BlastQueryInfo *query_info, Int8 searchsp)
 
static BlastInitialWordParameterss_GetInitialWordParameters (EBlastProgramType program_number, BLAST_SequenceBlk *query_blk, BlastQueryInfo *query_info, BlastScoreBlk *sbp, const BlastInitialWordOptions *word_options, int subject_length, const BlastHitSavingParameters *hit_params)
 
 BOOST_AUTO_TEST_CASE (testCalcLinkHSPCutoffs)
 
static BlastScoreBlks_FillScoreBlkWithBadKbp (BlastQueryInfo *query_info)
 
 BOOST_AUTO_TEST_CASE (testBadKbpForLinkHSPCutoffs)
 
 BOOST_AUTO_TEST_CASE (testCalcLinkHSPCutoffsSmallDB)
 
 BOOST_AUTO_TEST_CASE (testCalcLinkHSPResetGapProb)
 
 BOOST_AUTO_TEST_CASE (testLargeWordSize)
 
static void MakeSomeInvalidKBP (Blast_KarlinBlk **kbp_array, Int4 num, Int4 good_one, BlastQueryInfo *query_info)
 
 BOOST_AUTO_TEST_CASE (testExtParamNewSomeInvalidKbp)
 
static void MakeSomeValidKBP (Blast_KarlinBlk **kbp_array, Int4 num, BlastQueryInfo *query_info)
 
 BOOST_AUTO_TEST_CASE (testExtensionParamsNew)
 
 BOOST_AUTO_TEST_CASE (testHitSavingParamNewSomeInvalidKbp)
 
 BOOST_AUTO_TEST_CASE (testHitSavingParamNewGappedTblastnLargeSubjectSequence)
 
 BOOST_AUTO_TEST_CASE (testHitSavingParamNewGappedTblastnMidsizeSubjectSequence)
 
 BOOST_AUTO_TEST_CASE (testHitSavingParamUpdateMultipleCalls)
 
 BOOST_AUTO_TEST_CASE (testHitSavingParamNewGappedTblastnSmallSubjectSequence)
 
 BOOST_AUTO_TEST_CASE (testInitialWordParamNewSomeInvalidKbp)
 
 BOOST_AUTO_TEST_CASE (testRemoteFilterString)
 
 BOOST_AUTO_TEST_CASE (testNewFilteringDefaults)
 
 BOOST_AUTO_TEST_CASE (testOptionsDeepCopy)
 

Variables

 USING_NCBI_SCOPE
 

Detailed Description

Unit tests for the BLAST options.

Definition in file blastoptions_unit_test.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/28]

BOOST_AUTO_TEST_CASE ( BogusProgramWithCreate  )

Definition at line 76 of file blastoptions_unit_test.cpp.

References CBlastOptionsFactory::Create(), and eBlastNotSet.

◆ BOOST_AUTO_TEST_CASE() [2/28]

BOOST_AUTO_TEST_CASE ( FilterSetUpOptionsDustTest  )

◆ BOOST_AUTO_TEST_CASE() [3/28]

BOOST_AUTO_TEST_CASE ( FilterSetUpOptionsNULLInput  )

Definition at line 261 of file blastoptions_unit_test.cpp.

References eSeg, NULL, and SBlastFilterOptionsNew().

◆ BOOST_AUTO_TEST_CASE() [4/28]

BOOST_AUTO_TEST_CASE ( FilterSetUpOptionsSegTest  )

◆ BOOST_AUTO_TEST_CASE() [5/28]

BOOST_AUTO_TEST_CASE ( GetNucleotideGapExistenceExtendParamsTest  )

◆ BOOST_AUTO_TEST_CASE() [6/28]

BOOST_AUTO_TEST_CASE ( GetProteinGapExistenceExtendParamsTest  )

Definition at line 162 of file blastoptions_unit_test.cpp.

References BLAST_GetProteinGapExistenceExtendParams(), and NULL.

◆ BOOST_AUTO_TEST_CASE() [7/28]

BOOST_AUTO_TEST_CASE ( GetSuggestedThresholdTest  )

◆ BOOST_AUTO_TEST_CASE() [8/28]

BOOST_AUTO_TEST_CASE ( GetSuggestedWindowSizeTest  )

◆ BOOST_AUTO_TEST_CASE() [9/28]

BOOST_AUTO_TEST_CASE ( OptionsFreeNULLInput  )

◆ BOOST_AUTO_TEST_CASE() [10/28]

BOOST_AUTO_TEST_CASE ( RemoteOptionsTest  )

◆ BOOST_AUTO_TEST_CASE() [11/28]

BOOST_AUTO_TEST_CASE ( testBadKbpForLinkHSPCutoffs  )

◆ BOOST_AUTO_TEST_CASE() [12/28]

BOOST_AUTO_TEST_CASE ( testCalcLinkHSPCutoffs  )

◆ BOOST_AUTO_TEST_CASE() [13/28]

BOOST_AUTO_TEST_CASE ( testCalcLinkHSPCutoffsSmallDB  )

◆ BOOST_AUTO_TEST_CASE() [14/28]

BOOST_AUTO_TEST_CASE ( testCalcLinkHSPResetGapProb  )

◆ BOOST_AUTO_TEST_CASE() [15/28]

BOOST_AUTO_TEST_CASE ( testExtensionParamsNew  )

◆ BOOST_AUTO_TEST_CASE() [16/28]

BOOST_AUTO_TEST_CASE ( testExtParamNewSomeInvalidKbp  )

◆ BOOST_AUTO_TEST_CASE() [17/28]

BOOST_AUTO_TEST_CASE ( testHitSavingParamNewGappedTblastnLargeSubjectSequence  )

◆ BOOST_AUTO_TEST_CASE() [18/28]

BOOST_AUTO_TEST_CASE ( testHitSavingParamNewGappedTblastnMidsizeSubjectSequence  )

◆ BOOST_AUTO_TEST_CASE() [19/28]

BOOST_AUTO_TEST_CASE ( testHitSavingParamNewGappedTblastnSmallSubjectSequence  )

◆ BOOST_AUTO_TEST_CASE() [20/28]

BOOST_AUTO_TEST_CASE ( testHitSavingParamNewSomeInvalidKbp  )

◆ BOOST_AUTO_TEST_CASE() [21/28]

BOOST_AUTO_TEST_CASE ( testHitSavingParamUpdateMultipleCalls  )

◆ BOOST_AUTO_TEST_CASE() [22/28]

BOOST_AUTO_TEST_CASE ( testInitialWordParamNewSomeInvalidKbp  )

◆ BOOST_AUTO_TEST_CASE() [23/28]

BOOST_AUTO_TEST_CASE ( testLargeWordSize  )

◆ BOOST_AUTO_TEST_CASE() [24/28]

BOOST_AUTO_TEST_CASE ( testNewFilteringDefaults  )

◆ BOOST_AUTO_TEST_CASE() [25/28]

BOOST_AUTO_TEST_CASE ( testOptionsDeepCopy  )

◆ BOOST_AUTO_TEST_CASE() [26/28]

BOOST_AUTO_TEST_CASE ( testRemoteFilterString  )

◆ BOOST_AUTO_TEST_CASE() [27/28]

BOOST_AUTO_TEST_CASE ( TestTasksDefinitionsAndDocumentation  )

◆ BOOST_AUTO_TEST_CASE() [28/28]

BOOST_AUTO_TEST_CASE ( UnifiedPOptionsTest  )

◆ MakeSomeInvalidKBP()

static void MakeSomeInvalidKBP ( Blast_KarlinBlk **  kbp_array,
Int4  num,
Int4  good_one,
BlastQueryInfo query_info 
)
static

◆ MakeSomeValidKBP()

static void MakeSomeValidKBP ( Blast_KarlinBlk **  kbp_array,
Int4  num,
BlastQueryInfo query_info 
)
static

◆ s_FillScoreBlkWithBadKbp()

static BlastScoreBlk* s_FillScoreBlkWithBadKbp ( BlastQueryInfo query_info)
static

◆ s_FillSearchSpace()

static void s_FillSearchSpace ( BlastQueryInfo query_info,
Int8  searchsp 
)
static

◆ s_GetInitialWordParameters()

static BlastInitialWordParameters* s_GetInitialWordParameters ( EBlastProgramType  program_number,
BLAST_SequenceBlk query_blk,
BlastQueryInfo query_info,
BlastScoreBlk sbp,
const BlastInitialWordOptions word_options,
int  subject_length,
const BlastHitSavingParameters hit_params 
)
static

◆ USING_SCOPE() [1/2]

USING_SCOPE ( blast  )

◆ USING_SCOPE() [2/2]

USING_SCOPE ( objects  )

Variable Documentation

◆ USING_NCBI_SCOPE

USING_NCBI_SCOPE

Definition at line 47 of file blastoptions_unit_test.cpp.

Modified on Fri Sep 20 14:57:15 2024 by modify_doxy.py rev. 669887