NCBI C++ ToolKit
Classes | Namespaces | Macros | Functions
blast_test_util.hpp File Reference

Utilities to develop and debug unit tests for BLAST. More...

#include <string>
#include <exception>
#include <assert.h>
#include <corelib/ncbistd.hpp>
#include <serial/serial.hpp>
#include <serial/objostr.hpp>
#include <util/random_gen.hpp>
#include <util/format_guess.hpp>
#include <objtools/data_loaders/blastdb/bdbloader.hpp>
+ Include dependency graph for blast_test_util.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.


struct  TestUtil::CRandomIntGen< lowest_value, highest_value >
class  TestUtil::CBlastOM
 Class which registers the BLAST database and Genbank data loaders as a non-default data loaders with the object manager upon construction. More...


 Magic spell ;-) needed for some weird compilers... very empiric.


#define ASSERT   assert


objects::CSeq_id * TestUtil::GenerateRandomSeqid_Gi ()
template<class T >
ncbi::CRef< TTestUtil::ReadObject (const std::string &filename)
template<class T >
void TestUtil::PrintTextAsn1Object (std::string filename, T *obj)
 Convenience template function to print ASN.1 objects to a new file. More...
ncbi::CRef< ncbi::objects::CSeq_align_set > TestUtil::FlattenSeqAlignSet (const ncbi::objects::CSeq_align_set &sset)
 Converts bl2seq and blast style seq-align-sets to the seq-align-set format that the new formatter understands (same flat format as C toolkit seq-aligns) More...
void TestUtil::PrintFormattedSeqAlign (std::ostream &out, const ncbi::objects::CSeq_align_set *sas, ncbi::objects::CScope &scope)
 Assumes that the sas argument is a bl2seq and blast style seq-align-set. More...
Uint4 TestUtil::EndianIndependentBufferHash (const char *buffer, Uint4 byte_length, Uint4 swap_size=1, Uint4 hash_seed=1)
 Endianness independent hash function. More...

Detailed Description

Utilities to develop and debug unit tests for BLAST.

Definition in file blast_test_util.hpp.

Macro Definition Documentation


#define ASSERT   assert

Definition at line 52 of file blast_test_util.hpp.

Modified on Wed Feb 21 09:54:29 2024 by rev. 669887