NCBI C++ ToolKit
Classes | Typedefs | Functions | Variables
unit_test_alnreader.cpp File Reference
#include <ncbi_pch.hpp>
#include <corelib/ncbi_system.hpp>
#include <corelib/ncbiapp.hpp>
#include <corelib/ncbifile.hpp>
#include <objtools/readers/reader_error_codes.hpp>
#include <objtools/readers/aln_reader.hpp>
#include <objtools/readers/fasta.hpp>
#include <cstdio>
#include <corelib/test_boost.hpp>
+ Include dependency graph for unit_test_alnreader.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

class  CErrorLogger
 
struct  STestInfo
 
class  CTestNameToInfoMapLoader
 

Typedefs

using TTestName = string
 
using TTestNameToInfoMap = map< TTestName, STestInfo >
 

Functions

 USING_SCOPE (objects)
 
const string extInput ("aln")
 
const string extOutput ("asn")
 
const string extErrors ("errors")
 
const string extKeep ("new")
 
const string dirTestFiles ("alnreader_test_cases")
 
CAlnReadersGetReader (const string &testName, ifstream &ifstr)
 
CAlnReader::TFastaFlags sGetFastaFlags (const string &testName)
 
void sUpdateCase (CDir &test_cases_dir, const string &test_name)
 
void sUpdateAll (CDir &test_cases_dir)
 
void sRunTest (const string &sTestName, const STestInfo &testInfo, bool keep)
 
 NCBITEST_AUTO_INIT ()
 
 NCBITEST_INIT_CMDLINE (arg_descrs)
 
 NCBITEST_AUTO_FINI ()
 
 BOOST_AUTO_TEST_CASE (RunTests)
 

Variables

 USING_NCBI_SCOPE
 

Typedef Documentation

◆ TTestName

using TTestName = string

Definition at line 152 of file unit_test_alnreader.cpp.

◆ TTestNameToInfoMap

Definition at line 153 of file unit_test_alnreader.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE()

BOOST_AUTO_TEST_CASE ( RunTests  )

◆ dirTestFiles()

const string dirTestFiles ( "alnreader_test_cases"  )

Referenced by NCBITEST_INIT_CMDLINE().

◆ extErrors()

const string extErrors ( "errors"  )

◆ extInput()

const string extInput ( "aln"  )

◆ extKeep()

const string extKeep ( "new"  )

Referenced by sRunTest().

◆ extOutput()

const string extOutput ( "asn"  )

◆ NCBITEST_AUTO_FINI()

NCBITEST_AUTO_FINI ( )

Definition at line 394 of file unit_test_alnreader.cpp.

◆ NCBITEST_AUTO_INIT()

NCBITEST_AUTO_INIT ( )

Definition at line 363 of file unit_test_alnreader.cpp.

◆ NCBITEST_INIT_CMDLINE()

NCBITEST_INIT_CMDLINE ( arg_descrs  )

◆ sGetFastaFlags()

CAlnReader::TFastaFlags sGetFastaFlags ( const string testName)

Definition at line 239 of file unit_test_alnreader.cpp.

References CFastaReader::fAddMods, NStr::FindNoCase(), and NPOS.

Referenced by sRunTest(), and sUpdateCase().

◆ sGetReader()

CAlnReader* sGetReader ( const string testName,
ifstream &  ifstr 
)

Definition at line 224 of file unit_test_alnreader.cpp.

References CAlnReader::eAlpha_Nucleotide, and NStr::EndsWith().

Referenced by sRunTest(), and sUpdateCase().

◆ sRunTest()

void sRunTest ( const string sTestName,
const STestInfo testInfo,
bool  keep 
)

◆ sUpdateAll()

void sUpdateAll ( CDir test_cases_dir)

◆ sUpdateCase()

void sUpdateCase ( CDir test_cases_dir,
const string test_name 
)

◆ USING_SCOPE()

USING_SCOPE ( objects  )

Variable Documentation

◆ USING_NCBI_SCOPE

USING_NCBI_SCOPE

Definition at line 51 of file unit_test_alnreader.cpp.

Modified on Fri Feb 23 11:49:16 2024 by modify_doxy.py rev. 669887