NCBI C++ ToolKit
Classes | Macros | Typedefs | Functions | Variables
writedb_unit_test.cpp File Reference
#include <ncbi_pch.hpp>
#include <objtools/blast/seqdb_reader/seqdbexpert.hpp>
#include <objtools/blast/seqdb_writer/writedb.hpp>
#include <objmgr/object_manager.hpp>
#include <objmgr/seq_vector.hpp>
#include <objtools/readers/fasta.hpp>
#include <serial/objistr.hpp>
#include <serial/serial.hpp>
#include <serial/iterator.hpp>
#include "../mask_info_registry.hpp"
#include <sstream>
#include <corelib/test_boost.hpp>
#include <boost/current_function.hpp>
#include <objtools/blast/seqdb_writer/build_db.hpp>
#include <objtools/blast/seqdb_writer/writedb_isam.hpp>
#include <objtools/blast/seqdb_writer/seqidlist_writer.hpp>
#include <objtools/blast/seqdb_reader/impl/seqdbisam.hpp>
#include <objtools/blast/seqdb_reader/seqidlist_reader.hpp>
#include <objects/seqset/Seq_entry.hpp>
#include <unordered_map>
+ Include dependency graph for writedb_unit_test.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

class  CNonException
 
class  CWrapperUpper
 
struct  SAliasFileData
 Auxiliary class to parse the contents of an alias file. More...
 
struct  SAliasFileData::Value
 Encapsulates the alias' file key-value pair. More...
 
class  CSeqEntryGetSource
 

Macros

#define NCBI_TEST_APPLICATION
 
#define BOOST_REQUIRE_CUTPOINT(X)   if (cutpoint == X) throw CNonException()
 

Typedefs

typedef vector< CRef< CSeq_id > > TIdList
 

Functions

 USING_SCOPE (objects)
 
void s_FetchRawData (CSeqDBExpert &seqdb, int oid, string &sequence, string &ambig)
 
CRef< CSeq_ids_GiToSeqId (TGi gi)
 
CRef< CSeq_ids_AccToSeqId (const char *acc)
 
string s_HexDumpText (const string &raw, const vector< int > &layout, int base)
 
string s_HexDumpText (const string &raw, int per, int base)
 
string s_HexDumpFile (const string &fname, const vector< int > &layout, int base)
 
string s_HexDumpFile (const string &fname, int per, int base)
 
static void s_DupIdsBioseq (CWriteDB &w, CSeqDB &s, const TIdList &ids, int cutpoint)
 
static void s_DupIdsRaw (CWriteDB &w, CSeqDBExpert &seqdb, const TIdList &ids)
 
template<class ASNOBJ >
void s_Stringify (const ASNOBJ &a, string &s)
 
template<class ASNOBJ >
void s_Unstringify (const string &s, ASNOBJ &a)
 
template<class ASNOBJ >
CRef< ASNOBJ > s_Duplicate (const ASNOBJ &a)
 
void s_CompareBioseqs (CBioseq &src, CBioseq &dst)
 
void s_TestDatabase (CSeqDBExpert &src, const string &name, const string &title)
 
void s_RemoveFile (const string &f)
 
void s_RemoveFiles (const vector< string > &files)
 
void s_CheckSorted (const string &fname)
 
string s_ExtractLast (const string &data, const string &delim)
 
void s_CheckFiles (const vector< string > &files, bool need_hash=false)
 
void s_WrapUpFiles (const vector< string > &files)
 
void s_WrapUpDb (CWriteDB &db)
 
static void s_DupSequencesTest (const TIdList &ids, bool is_protein, bool raw_data, const string &src_name, const string &dst_name, const string &title, int cutpoint=99)
 
static CRef< CScopes_GetScope ()
 
static void s_BuildIds (TIdList &ids, TGi *gis)
 
static void s_BuildIds (TIdList &ids, const char **gis)
 
CRef< CBioseqs_FastaStringToBioseq (const string &str, bool protein)
 
static void s_NuclBioseqDupSwitch (int cutpoint)
 
 BOOST_AUTO_TEST_CASE (NuclBioseqDupI)
 
 BOOST_AUTO_TEST_CASE (NuclBioseqDupJ4)
 
 BOOST_AUTO_TEST_CASE (NuclBioseqDupJ8)
 
 BOOST_AUTO_TEST_CASE (NuclBioseqDupJ12)
 
 BOOST_AUTO_TEST_CASE (NuclBioseqDupJ16)
 
 BOOST_AUTO_TEST_CASE (NuclBioseqDupJ20)
 
 BOOST_AUTO_TEST_CASE (NuclBioseqDupJ24)
 
 BOOST_AUTO_TEST_CASE (NuclBioseqDupJ28)
 
 BOOST_AUTO_TEST_CASE (NuclBioseqDupJ32)
 
 BOOST_AUTO_TEST_CASE (NuclBioseqDupJ33)
 
 BOOST_AUTO_TEST_CASE (NuclBioseqDupJ34)
 
 BOOST_AUTO_TEST_CASE (NuclBioseqDupJ35)
 
 BOOST_AUTO_TEST_CASE (NuclBioseqDupJ36)
 
 BOOST_AUTO_TEST_CASE (NuclBioseqDupJ40)
 
 BOOST_AUTO_TEST_CASE (NuclBioseqDupJ44)
 
 BOOST_AUTO_TEST_CASE (NuclBioseqDupJ45)
 
 BOOST_AUTO_TEST_CASE (NuclBioseqDupJ46)
 
 BOOST_AUTO_TEST_CASE (NuclBioseqDupJ47)
 
 BOOST_AUTO_TEST_CASE (NuclBioseqDupJ48)
 
 BOOST_AUTO_TEST_CASE (NuclBioseqDupJ49)
 
 BOOST_AUTO_TEST_CASE (NuclBioseqDupJ50)
 
 BOOST_AUTO_TEST_CASE (NuclBioseqDupJ)
 
 BOOST_AUTO_TEST_CASE (NuclBioseqDupK)
 
 BOOST_AUTO_TEST_CASE (NuclBioseqDup)
 
 BOOST_AUTO_TEST_CASE (ProtBioseqDup)
 
 BOOST_AUTO_TEST_CASE (EmptyBioseq)
 
 BOOST_AUTO_TEST_CASE (BioseqHandle)
 
 BOOST_AUTO_TEST_CASE (BioseqHandleAndSeqVectorNonWriteDB)
 
 BOOST_AUTO_TEST_CASE (BioseqHandleAndSeqVector)
 
 BOOST_AUTO_TEST_CASE (BioseqHandleAndSeqVectorWriteDB)
 
 BOOST_AUTO_TEST_CASE (SetPig)
 
 BOOST_AUTO_TEST_CASE (MultiVolume)
 
 BOOST_AUTO_TEST_CASE (UsPatId)
 
 BOOST_AUTO_TEST_CASE (IsamSorting)
 
 BOOST_AUTO_TEST_CASE (DuplicateId)
 
 BOOST_AUTO_TEST_CASE (HashToOid)
 
 BOOST_AUTO_TEST_CASE (MismatchedDb_Bioseq)
 
 BOOST_AUTO_TEST_CASE (PDBIdLowerCase)
 
 BOOST_AUTO_TEST_CASE (FastaReaderBioseq)
 
 BOOST_AUTO_TEST_CASE (BinaryListBuilder)
 
 BOOST_AUTO_TEST_CASE (FourAndEightByteTis)
 
void s_WrapUpColumn (CWriteDB_ColumnBuilder &cb)
 
 BOOST_AUTO_TEST_CASE (UserDefinedColumns)
 
 BOOST_AUTO_TEST_CASE (RegisterMaskingAlgorithms)
 
 BOOST_AUTO_TEST_CASE (RegisterVariantsOfSameMaskingAlgorithm)
 
void RegisterTooManyVariantsOfSameMaskingAlgorithm (EBlast_filter_program masking_algo, size_t kMaxNumSupportedAlgorithmVariants)
 
 BOOST_AUTO_TEST_CASE (RegisterTooManyVariantsOfDust)
 
 BOOST_AUTO_TEST_CASE (RegisterTooManyVariantsOfSeg)
 
 BOOST_AUTO_TEST_CASE (RegisterTooManyVariantsOfWindowMasker)
 
 BOOST_AUTO_TEST_CASE (RegisterTooManyVariantsOfRepeats)
 
 BOOST_AUTO_TEST_CASE (RegisterTooManyVariantsOfOther)
 
 BOOST_AUTO_TEST_CASE (MaskDataColumn)
 
 BOOST_AUTO_TEST_CASE (DuplicateAlgoId)
 
 BOOST_AUTO_TEST_CASE (TooManyAlgoId)
 
 BOOST_AUTO_TEST_CASE (UndefinedAlgoID)
 
 BOOST_AUTO_TEST_CASE (MaskDataBoundsError)
 
 BOOST_AUTO_TEST_CASE (AliasFileGeneration)
 
 BOOST_AUTO_TEST_CASE (AliasFileGeneration_SeqIdList)
 
 BOOST_AUTO_TEST_CASE (AliasFileGeneration_WithDbListNumVolumes)
 
 BOOST_AUTO_TEST_CASE (AliasFileGenerationWithOidRange)
 
 BOOST_AUTO_TEST_CASE (AliasFileGeneration_WithDbListAggregateBlastDbs)
 
 BOOST_AUTO_TEST_CASE (InvalidAliasFileGeneration_NonExistentDb)
 
 BOOST_AUTO_TEST_CASE (InvalidAliasFileGeneration_NonExistentDbAggregation)
 
 BOOST_AUTO_TEST_CASE (InvalidAliasFileGeneration_NonExistentMultiVolDbAggregation)
 
 BOOST_AUTO_TEST_CASE (InvalidAliasFileGeneration_NoGisInBlastDB)
 
 BOOST_AUTO_TEST_CASE (CBuildDatabase_WriteToInvalidPathWindows)
 
 BOOST_AUTO_TEST_CASE (CBuildDatabase_WriteToInvalidPathUnix)
 
 BOOST_AUTO_TEST_CASE (CWriteDB_SetTaxonomy)
 
 BOOST_AUTO_TEST_CASE (CWriteDB_SetTaxonomyFromMap)
 
 BOOST_AUTO_TEST_CASE (CWriteDB_SetTaxonomyFromMapLclIds)
 
 BOOST_AUTO_TEST_CASE (CBuildDatabase_TestDirectoryCreation)
 
 BOOST_AUTO_TEST_CASE (CBuildDatabase_TestBasicDatabaseCreation)
 
 BOOST_AUTO_TEST_CASE (CBuildDatabase_TestQuickDatabaseCreation)
 
 BOOST_AUTO_TEST_CASE (CBuildDatabase_TestQuickDatabaseCreation_NoIds)
 
 BOOST_AUTO_TEST_CASE (CBuildDatabase_WGS_gap)
 
 BOOST_AUTO_TEST_CASE (ReadBareIDProtein)
 
 BOOST_AUTO_TEST_CASE (ReadMultipleBareIDs)
 
 BOOST_AUTO_TEST_CASE (ReadBareIDNucleotide)
 
 BOOST_AUTO_TEST_CASE (ReadMixIDsProtein)
 
 BOOST_AUTO_TEST_CASE (ReadMultipleMixLongIDs)
 
 BOOST_AUTO_TEST_CASE (ReadMixIDNucleotide)
 
 BOOST_AUTO_TEST_CASE (CreateV5Seqidlist)
 
 BOOST_AUTO_TEST_CASE (ReadMultiSeqIdsDefline)
 
 BOOST_AUTO_TEST_CASE (ReadPDBFasta)
 
void s_TestReadPDBAsn1 (CNcbiIfstream &istr, CNcbiIfstream &ref_ids_file, int num_oids)
 
 BOOST_AUTO_TEST_CASE (ReadPDBAsn1)
 
 BOOST_AUTO_TEST_CASE (LimitProteinDeflines)
 

Variables

 USING_NCBI_SCOPE
 
int g_NuclJ_OidCount = 99
 

Macro Definition Documentation

◆ BOOST_REQUIRE_CUTPOINT

#define BOOST_REQUIRE_CUTPOINT (   X)    if (cutpoint == X) throw CNonException()

Definition at line 202 of file writedb_unit_test.cpp.

◆ NCBI_TEST_APPLICATION

#define NCBI_TEST_APPLICATION

Definition at line 32 of file writedb_unit_test.cpp.

Typedef Documentation

◆ TIdList

typedef vector< CRef<CSeq_id> > TIdList

Definition at line 195 of file writedb_unit_test.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/84]

BOOST_AUTO_TEST_CASE ( AliasFileGeneration  )

◆ BOOST_AUTO_TEST_CASE() [2/84]

BOOST_AUTO_TEST_CASE ( AliasFileGeneration_SeqIdList  )

◆ BOOST_AUTO_TEST_CASE() [3/84]

BOOST_AUTO_TEST_CASE ( AliasFileGeneration_WithDbListAggregateBlastDbs  )

◆ BOOST_AUTO_TEST_CASE() [4/84]

BOOST_AUTO_TEST_CASE ( AliasFileGeneration_WithDbListNumVolumes  )

◆ BOOST_AUTO_TEST_CASE() [5/84]

BOOST_AUTO_TEST_CASE ( AliasFileGenerationWithOidRange  )

◆ BOOST_AUTO_TEST_CASE() [6/84]

BOOST_AUTO_TEST_CASE ( BinaryListBuilder  )

◆ BOOST_AUTO_TEST_CASE() [7/84]

BOOST_AUTO_TEST_CASE ( BioseqHandle  )

◆ BOOST_AUTO_TEST_CASE() [8/84]

BOOST_AUTO_TEST_CASE ( BioseqHandleAndSeqVector  )

◆ BOOST_AUTO_TEST_CASE() [9/84]

BOOST_AUTO_TEST_CASE ( BioseqHandleAndSeqVectorNonWriteDB  )

◆ BOOST_AUTO_TEST_CASE() [10/84]

BOOST_AUTO_TEST_CASE ( BioseqHandleAndSeqVectorWriteDB  )

◆ BOOST_AUTO_TEST_CASE() [11/84]

BOOST_AUTO_TEST_CASE ( CBuildDatabase_TestBasicDatabaseCreation  )

◆ BOOST_AUTO_TEST_CASE() [12/84]

BOOST_AUTO_TEST_CASE ( CBuildDatabase_TestDirectoryCreation  )

◆ BOOST_AUTO_TEST_CASE() [13/84]

BOOST_AUTO_TEST_CASE ( CBuildDatabase_TestQuickDatabaseCreation  )

◆ BOOST_AUTO_TEST_CASE() [14/84]

BOOST_AUTO_TEST_CASE ( CBuildDatabase_TestQuickDatabaseCreation_NoIds  )

◆ BOOST_AUTO_TEST_CASE() [15/84]

BOOST_AUTO_TEST_CASE ( CBuildDatabase_WGS_gap  )

◆ BOOST_AUTO_TEST_CASE() [16/84]

BOOST_AUTO_TEST_CASE ( CBuildDatabase_WriteToInvalidPathUnix  )

◆ BOOST_AUTO_TEST_CASE() [17/84]

BOOST_AUTO_TEST_CASE ( CBuildDatabase_WriteToInvalidPathWindows  )

◆ BOOST_AUTO_TEST_CASE() [18/84]

BOOST_AUTO_TEST_CASE ( CreateV5Seqidlist  )

◆ BOOST_AUTO_TEST_CASE() [19/84]

BOOST_AUTO_TEST_CASE ( CWriteDB_SetTaxonomy  )

◆ BOOST_AUTO_TEST_CASE() [20/84]

BOOST_AUTO_TEST_CASE ( CWriteDB_SetTaxonomyFromMap  )

◆ BOOST_AUTO_TEST_CASE() [21/84]

BOOST_AUTO_TEST_CASE ( CWriteDB_SetTaxonomyFromMapLclIds  )

◆ BOOST_AUTO_TEST_CASE() [22/84]

BOOST_AUTO_TEST_CASE ( DuplicateAlgoId  )

Definition at line 2006 of file writedb_unit_test.cpp.

References eBlast_filter_program_seg, CWriteDB::eProtein, and W.

◆ BOOST_AUTO_TEST_CASE() [23/84]

BOOST_AUTO_TEST_CASE ( DuplicateId  )

Definition at line 1403 of file writedb_unit_test.cpp.

References s_BuildIds(), and s_DupSequencesTest().

◆ BOOST_AUTO_TEST_CASE() [24/84]

BOOST_AUTO_TEST_CASE ( EmptyBioseq  )

◆ BOOST_AUTO_TEST_CASE() [25/84]

BOOST_AUTO_TEST_CASE ( FastaReaderBioseq  )

◆ BOOST_AUTO_TEST_CASE() [26/84]

BOOST_AUTO_TEST_CASE ( FourAndEightByteTis  )

◆ BOOST_AUTO_TEST_CASE() [27/84]

BOOST_AUTO_TEST_CASE ( HashToOid  )

◆ BOOST_AUTO_TEST_CASE() [28/84]

BOOST_AUTO_TEST_CASE ( InvalidAliasFileGeneration_NoGisInBlastDB  )

◆ BOOST_AUTO_TEST_CASE() [29/84]

BOOST_AUTO_TEST_CASE ( InvalidAliasFileGeneration_NonExistentDb  )

◆ BOOST_AUTO_TEST_CASE() [30/84]

BOOST_AUTO_TEST_CASE ( InvalidAliasFileGeneration_NonExistentDbAggregation  )

◆ BOOST_AUTO_TEST_CASE() [31/84]

BOOST_AUTO_TEST_CASE ( InvalidAliasFileGeneration_NonExistentMultiVolDbAggregation  )

◆ BOOST_AUTO_TEST_CASE() [32/84]

BOOST_AUTO_TEST_CASE ( IsamSorting  )

Definition at line 1361 of file writedb_unit_test.cpp.

References s_BuildIds(), and s_DupSequencesTest().

◆ BOOST_AUTO_TEST_CASE() [33/84]

BOOST_AUTO_TEST_CASE ( LimitProteinDeflines  )

◆ BOOST_AUTO_TEST_CASE() [34/84]

BOOST_AUTO_TEST_CASE ( MaskDataBoundsError  )

◆ BOOST_AUTO_TEST_CASE() [35/84]

BOOST_AUTO_TEST_CASE ( MaskDataColumn  )

◆ BOOST_AUTO_TEST_CASE() [36/84]

BOOST_AUTO_TEST_CASE ( MismatchedDb_Bioseq  )

◆ BOOST_AUTO_TEST_CASE() [37/84]

BOOST_AUTO_TEST_CASE ( MultiVolume  )

◆ BOOST_AUTO_TEST_CASE() [38/84]

BOOST_AUTO_TEST_CASE ( NuclBioseqDup  )

Definition at line 1060 of file writedb_unit_test.cpp.

References s_NuclBioseqDupSwitch().

◆ BOOST_AUTO_TEST_CASE() [39/84]

BOOST_AUTO_TEST_CASE ( NuclBioseqDupI  )

Definition at line 758 of file writedb_unit_test.cpp.

References s_NuclBioseqDupSwitch().

◆ BOOST_AUTO_TEST_CASE() [40/84]

BOOST_AUTO_TEST_CASE ( NuclBioseqDupJ  )

Definition at line 1008 of file writedb_unit_test.cpp.

References s_NuclBioseqDupSwitch().

◆ BOOST_AUTO_TEST_CASE() [41/84]

BOOST_AUTO_TEST_CASE ( NuclBioseqDupJ12  )

Definition at line 792 of file writedb_unit_test.cpp.

References g_NuclJ_OidCount, and s_NuclBioseqDupSwitch().

◆ BOOST_AUTO_TEST_CASE() [42/84]

BOOST_AUTO_TEST_CASE ( NuclBioseqDupJ16  )

Definition at line 804 of file writedb_unit_test.cpp.

References g_NuclJ_OidCount, and s_NuclBioseqDupSwitch().

◆ BOOST_AUTO_TEST_CASE() [43/84]

BOOST_AUTO_TEST_CASE ( NuclBioseqDupJ20  )

Definition at line 816 of file writedb_unit_test.cpp.

References g_NuclJ_OidCount, and s_NuclBioseqDupSwitch().

◆ BOOST_AUTO_TEST_CASE() [44/84]

BOOST_AUTO_TEST_CASE ( NuclBioseqDupJ24  )

Definition at line 828 of file writedb_unit_test.cpp.

References g_NuclJ_OidCount, and s_NuclBioseqDupSwitch().

◆ BOOST_AUTO_TEST_CASE() [45/84]

BOOST_AUTO_TEST_CASE ( NuclBioseqDupJ28  )

Definition at line 840 of file writedb_unit_test.cpp.

References g_NuclJ_OidCount, and s_NuclBioseqDupSwitch().

◆ BOOST_AUTO_TEST_CASE() [46/84]

BOOST_AUTO_TEST_CASE ( NuclBioseqDupJ32  )

Definition at line 852 of file writedb_unit_test.cpp.

References g_NuclJ_OidCount, and s_NuclBioseqDupSwitch().

◆ BOOST_AUTO_TEST_CASE() [47/84]

BOOST_AUTO_TEST_CASE ( NuclBioseqDupJ33  )

Definition at line 864 of file writedb_unit_test.cpp.

References g_NuclJ_OidCount, and s_NuclBioseqDupSwitch().

◆ BOOST_AUTO_TEST_CASE() [48/84]

BOOST_AUTO_TEST_CASE ( NuclBioseqDupJ34  )

Definition at line 876 of file writedb_unit_test.cpp.

References g_NuclJ_OidCount, and s_NuclBioseqDupSwitch().

◆ BOOST_AUTO_TEST_CASE() [49/84]

BOOST_AUTO_TEST_CASE ( NuclBioseqDupJ35  )

Definition at line 888 of file writedb_unit_test.cpp.

References g_NuclJ_OidCount, and s_NuclBioseqDupSwitch().

◆ BOOST_AUTO_TEST_CASE() [50/84]

BOOST_AUTO_TEST_CASE ( NuclBioseqDupJ36  )

Definition at line 900 of file writedb_unit_test.cpp.

References g_NuclJ_OidCount, and s_NuclBioseqDupSwitch().

◆ BOOST_AUTO_TEST_CASE() [51/84]

BOOST_AUTO_TEST_CASE ( NuclBioseqDupJ4  )

Definition at line 768 of file writedb_unit_test.cpp.

References g_NuclJ_OidCount, and s_NuclBioseqDupSwitch().

◆ BOOST_AUTO_TEST_CASE() [52/84]

BOOST_AUTO_TEST_CASE ( NuclBioseqDupJ40  )

Definition at line 912 of file writedb_unit_test.cpp.

References g_NuclJ_OidCount, and s_NuclBioseqDupSwitch().

◆ BOOST_AUTO_TEST_CASE() [53/84]

BOOST_AUTO_TEST_CASE ( NuclBioseqDupJ44  )

Definition at line 924 of file writedb_unit_test.cpp.

References g_NuclJ_OidCount, and s_NuclBioseqDupSwitch().

◆ BOOST_AUTO_TEST_CASE() [54/84]

BOOST_AUTO_TEST_CASE ( NuclBioseqDupJ45  )

Definition at line 936 of file writedb_unit_test.cpp.

References g_NuclJ_OidCount, and s_NuclBioseqDupSwitch().

◆ BOOST_AUTO_TEST_CASE() [55/84]

BOOST_AUTO_TEST_CASE ( NuclBioseqDupJ46  )

Definition at line 948 of file writedb_unit_test.cpp.

References g_NuclJ_OidCount, and s_NuclBioseqDupSwitch().

◆ BOOST_AUTO_TEST_CASE() [56/84]

BOOST_AUTO_TEST_CASE ( NuclBioseqDupJ47  )

Definition at line 960 of file writedb_unit_test.cpp.

References g_NuclJ_OidCount, and s_NuclBioseqDupSwitch().

◆ BOOST_AUTO_TEST_CASE() [57/84]

BOOST_AUTO_TEST_CASE ( NuclBioseqDupJ48  )

Definition at line 972 of file writedb_unit_test.cpp.

References g_NuclJ_OidCount, and s_NuclBioseqDupSwitch().

◆ BOOST_AUTO_TEST_CASE() [58/84]

BOOST_AUTO_TEST_CASE ( NuclBioseqDupJ49  )

Definition at line 984 of file writedb_unit_test.cpp.

References g_NuclJ_OidCount, and s_NuclBioseqDupSwitch().

◆ BOOST_AUTO_TEST_CASE() [59/84]

BOOST_AUTO_TEST_CASE ( NuclBioseqDupJ50  )

Definition at line 996 of file writedb_unit_test.cpp.

References g_NuclJ_OidCount, and s_NuclBioseqDupSwitch().

◆ BOOST_AUTO_TEST_CASE() [60/84]

BOOST_AUTO_TEST_CASE ( NuclBioseqDupJ8  )

Definition at line 780 of file writedb_unit_test.cpp.

References g_NuclJ_OidCount, and s_NuclBioseqDupSwitch().

◆ BOOST_AUTO_TEST_CASE() [61/84]

BOOST_AUTO_TEST_CASE ( NuclBioseqDupK  )

Definition at line 1018 of file writedb_unit_test.cpp.

References s_NuclBioseqDupSwitch().

◆ BOOST_AUTO_TEST_CASE() [62/84]

BOOST_AUTO_TEST_CASE ( PDBIdLowerCase  )

◆ BOOST_AUTO_TEST_CASE() [63/84]

BOOST_AUTO_TEST_CASE ( ProtBioseqDup  )

Definition at line 1066 of file writedb_unit_test.cpp.

References s_BuildIds(), and s_DupSequencesTest().

◆ BOOST_AUTO_TEST_CASE() [64/84]

BOOST_AUTO_TEST_CASE ( ReadBareIDNucleotide  )

◆ BOOST_AUTO_TEST_CASE() [65/84]

BOOST_AUTO_TEST_CASE ( ReadBareIDProtein  )

◆ BOOST_AUTO_TEST_CASE() [66/84]

BOOST_AUTO_TEST_CASE ( ReadMixIDNucleotide  )

◆ BOOST_AUTO_TEST_CASE() [67/84]

BOOST_AUTO_TEST_CASE ( ReadMixIDsProtein  )

◆ BOOST_AUTO_TEST_CASE() [68/84]

BOOST_AUTO_TEST_CASE ( ReadMultipleBareIDs  )

◆ BOOST_AUTO_TEST_CASE() [69/84]

BOOST_AUTO_TEST_CASE ( ReadMultipleMixLongIDs  )

◆ BOOST_AUTO_TEST_CASE() [70/84]

BOOST_AUTO_TEST_CASE ( ReadMultiSeqIdsDefline  )

◆ BOOST_AUTO_TEST_CASE() [71/84]

BOOST_AUTO_TEST_CASE ( ReadPDBAsn1  )

Definition at line 3495 of file writedb_unit_test.cpp.

References s_TestReadPDBAsn1().

◆ BOOST_AUTO_TEST_CASE() [72/84]

BOOST_AUTO_TEST_CASE ( ReadPDBFasta  )

◆ BOOST_AUTO_TEST_CASE() [73/84]

BOOST_AUTO_TEST_CASE ( RegisterMaskingAlgorithms  )

◆ BOOST_AUTO_TEST_CASE() [74/84]

BOOST_AUTO_TEST_CASE ( RegisterTooManyVariantsOfDust  )

◆ BOOST_AUTO_TEST_CASE() [75/84]

BOOST_AUTO_TEST_CASE ( RegisterTooManyVariantsOfOther  )

◆ BOOST_AUTO_TEST_CASE() [76/84]

BOOST_AUTO_TEST_CASE ( RegisterTooManyVariantsOfRepeats  )

◆ BOOST_AUTO_TEST_CASE() [77/84]

BOOST_AUTO_TEST_CASE ( RegisterTooManyVariantsOfSeg  )

◆ BOOST_AUTO_TEST_CASE() [78/84]

BOOST_AUTO_TEST_CASE ( RegisterTooManyVariantsOfWindowMasker  )

◆ BOOST_AUTO_TEST_CASE() [79/84]

BOOST_AUTO_TEST_CASE ( RegisterVariantsOfSameMaskingAlgorithm  )

Definition at line 1826 of file writedb_unit_test.cpp.

References eBlast_filter_program_seg, and registry.

◆ BOOST_AUTO_TEST_CASE() [80/84]

BOOST_AUTO_TEST_CASE ( SetPig  )

◆ BOOST_AUTO_TEST_CASE() [81/84]

BOOST_AUTO_TEST_CASE ( TooManyAlgoId  )

◆ BOOST_AUTO_TEST_CASE() [82/84]

BOOST_AUTO_TEST_CASE ( UndefinedAlgoID  )

◆ BOOST_AUTO_TEST_CASE() [83/84]

BOOST_AUTO_TEST_CASE ( UserDefinedColumns  )

◆ BOOST_AUTO_TEST_CASE() [84/84]

BOOST_AUTO_TEST_CASE ( UsPatId  )

◆ RegisterTooManyVariantsOfSameMaskingAlgorithm()

void RegisterTooManyVariantsOfSameMaskingAlgorithm ( EBlast_filter_program  masking_algo,
size_t  kMaxNumSupportedAlgorithmVariants 
)

Definition at line 1836 of file writedb_unit_test.cpp.

References eBlast_filter_program_repeat, i, registry, and NStr::SizetToString().

Referenced by BOOST_AUTO_TEST_CASE().

◆ s_AccToSeqId()

CRef<CSeq_id> s_AccToSeqId ( const char *  acc)

Definition at line 94 of file writedb_unit_test.cpp.

Referenced by s_BuildIds().

◆ s_BuildIds() [1/2]

static void s_BuildIds ( TIdList ids,
const char **  gis 
)
static

Definition at line 581 of file writedb_unit_test.cpp.

References s_AccToSeqId().

◆ s_BuildIds() [2/2]

static void s_BuildIds ( TIdList ids,
TGi gis 
)
static

Definition at line 574 of file writedb_unit_test.cpp.

References s_GiToSeqId(), and ZERO_GI.

Referenced by BOOST_AUTO_TEST_CASE(), and s_NuclBioseqDupSwitch().

◆ s_CheckFiles()

void s_CheckFiles ( const vector< string > &  files,
bool  need_hash = false 
)

Definition at line 423 of file writedb_unit_test.cpp.

References i, s_CheckSorted(), and s_ExtractLast().

Referenced by s_WrapUpFiles().

◆ s_CheckSorted()

void s_CheckSorted ( const string fname)

Definition at line 390 of file writedb_unit_test.cpp.

References file, and NcbiGetlineEOL().

Referenced by s_CheckFiles().

◆ s_CompareBioseqs()

void s_CompareBioseqs ( CBioseq src,
CBioseq dst 
)

Definition at line 333 of file writedb_unit_test.cpp.

References s_Stringify().

Referenced by s_TestDatabase().

◆ s_DupIdsBioseq()

static void s_DupIdsBioseq ( CWriteDB w,
CSeqDB s,
const TIdList ids,
int  cutpoint 
)
static

◆ s_DupIdsRaw()

static void s_DupIdsRaw ( CWriteDB w,
CSeqDBExpert seqdb,
const TIdList ids 
)
static

◆ s_Duplicate()

template<class ASNOBJ >
CRef<ASNOBJ> s_Duplicate ( const ASNOBJ &  a)

Definition at line 320 of file writedb_unit_test.cpp.

References a, s_Stringify(), and s_Unstringify().

Referenced by BOOST_AUTO_TEST_CASE().

◆ s_DupSequencesTest()

static void s_DupSequencesTest ( const TIdList ids,
bool  is_protein,
bool  raw_data,
const string src_name,
const string dst_name,
const string title,
int  cutpoint = 99 
)
static

◆ s_ExtractLast()

string s_ExtractLast ( const string data,
const string delim 
)

Definition at line 407 of file writedb_unit_test.cpp.

References data, and string.

Referenced by s_CheckFiles().

◆ s_FastaStringToBioseq()

CRef<CBioseq> s_FastaStringToBioseq ( const string str,
bool  protein 
)

◆ s_FetchRawData()

void s_FetchRawData ( CSeqDBExpert seqdb,
int  oid,
string sequence,
string ambig 
)

Definition at line 67 of file writedb_unit_test.cpp.

References ambig(), buffer, and CSeqDBExpert::GetRawSeqAndAmbig().

Referenced by s_DupIdsRaw().

◆ s_GetScope()

static CRef<CScope> s_GetScope ( )
static

◆ s_GiToSeqId()

CRef<CSeq_id> s_GiToSeqId ( TGi  gi)

Definition at line 84 of file writedb_unit_test.cpp.

References CSeq_id_Base::e_Gi.

Referenced by s_BuildIds().

◆ s_HexDumpFile() [1/2]

string s_HexDumpFile ( const string fname,
const vector< int > &  layout,
int  base 
)

Definition at line 158 of file writedb_unit_test.cpp.

References buf, f, and s_HexDumpText().

Referenced by BOOST_AUTO_TEST_CASE(), and s_HexDumpFile().

◆ s_HexDumpFile() [2/2]

string s_HexDumpFile ( const string fname,
int  per,
int  base 
)

Definition at line 181 of file writedb_unit_test.cpp.

References s_HexDumpFile().

◆ s_HexDumpText() [1/2]

string s_HexDumpText ( const string raw,
const vector< int > &  layout,
int  base 
)

Definition at line 103 of file writedb_unit_test.cpp.

References i, int, mask, tmp, and NStr::UInt8ToString().

Referenced by s_HexDumpFile(), and s_HexDumpText().

◆ s_HexDumpText() [2/2]

string s_HexDumpText ( const string raw,
int  per,
int  base 
)

Definition at line 148 of file writedb_unit_test.cpp.

References s_HexDumpText().

◆ s_NuclBioseqDupSwitch()

static void s_NuclBioseqDupSwitch ( int  cutpoint)
static

Definition at line 616 of file writedb_unit_test.cpp.

References BOOST_REQUIRE_CUTPOINT, s_BuildIds(), and s_DupSequencesTest().

Referenced by BOOST_AUTO_TEST_CASE().

◆ s_RemoveFile()

void s_RemoveFile ( const string f)

Definition at line 373 of file writedb_unit_test.cpp.

References CDirEntry::eOnlyEmpty, f, and CDirEntry::Remove().

Referenced by s_RemoveFiles().

◆ s_RemoveFiles()

void s_RemoveFiles ( const vector< string > &  files)

Definition at line 381 of file writedb_unit_test.cpp.

References i, and s_RemoveFile().

Referenced by BOOST_AUTO_TEST_CASE(), and s_WrapUpFiles().

◆ s_Stringify()

template<class ASNOBJ >
void s_Stringify ( const ASNOBJ &  a,
string s 
)

Definition at line 300 of file writedb_unit_test.cpp.

References a, and MSerial_AsnText.

Referenced by s_CompareBioseqs(), and s_Duplicate().

◆ s_TestDatabase()

void s_TestDatabase ( CSeqDBExpert src,
const string name,
const string title 
)

◆ s_TestReadPDBAsn1()

void s_TestReadPDBAsn1 ( CNcbiIfstream istr,
CNcbiIfstream ref_ids_file,
int  num_oids 
)

◆ s_Unstringify()

template<class ASNOBJ >
void s_Unstringify ( const string s,
ASNOBJ &  a 
)

Definition at line 310 of file writedb_unit_test.cpp.

References a, and MSerial_AsnText.

Referenced by s_Duplicate().

◆ s_WrapUpColumn()

void s_WrapUpColumn ( CWriteDB_ColumnBuilder cb)

Definition at line 1730 of file writedb_unit_test.cpp.

References CWriteDB_ColumnBuilder::ListFiles(), and s_WrapUpFiles().

Referenced by BOOST_AUTO_TEST_CASE().

◆ s_WrapUpDb()

void s_WrapUpDb ( CWriteDB db)

◆ s_WrapUpFiles()

void s_WrapUpFiles ( const vector< string > &  files)

Definition at line 447 of file writedb_unit_test.cpp.

References s_CheckFiles(), and s_RemoveFiles().

Referenced by BOOST_AUTO_TEST_CASE(), s_WrapUpColumn(), and s_WrapUpDb().

◆ USING_SCOPE()

USING_SCOPE ( objects  )

Variable Documentation

◆ g_NuclJ_OidCount

int g_NuclJ_OidCount = 99

Definition at line 204 of file writedb_unit_test.cpp.

Referenced by BOOST_AUTO_TEST_CASE(), and s_DupIdsBioseq().

◆ USING_NCBI_SCOPE

USING_NCBI_SCOPE

Definition at line 59 of file writedb_unit_test.cpp.

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