NCBI C++ ToolKit
|
#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>
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") |
CAlnReader * | sGetReader (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 | |
Definition at line 152 of file unit_test_alnreader.cpp.
using TTestNameToInfoMap = map<TTestName, STestInfo> |
Definition at line 153 of file unit_test_alnreader.cpp.
BOOST_AUTO_TEST_CASE | ( | RunTests | ) |
Definition at line 399 of file unit_test_alnreader.cpp.
References CDirEntry::ConcatPath(), CFile::Exists(), extErrors(), extInput(), extOutput(), fFF_Default, fFF_Recursive, FindFilesInDir(), CNcbiApplicationAPI::GetArgs(), CDirEntry::GetPath(), CNcbiApplication::Instance(), CDirEntry::IsDir(), ITERATE, STestInfo::mErrorFile, STestInfo::mInFile, STestInfo::mOutFile, sRunTest(), sUpdateAll(), and sUpdateCase().
Referenced by NCBITEST_INIT_CMDLINE().
Referenced by BOOST_AUTO_TEST_CASE(), sUpdateAll(), and sUpdateCase().
Referenced by BOOST_AUTO_TEST_CASE(), sUpdateAll(), and sUpdateCase().
Referenced by sRunTest().
Referenced by BOOST_AUTO_TEST_CASE(), sUpdateAll(), and sUpdateCase().
NCBITEST_AUTO_FINI | ( | ) |
Definition at line 394 of file unit_test_alnreader.cpp.
NCBITEST_AUTO_INIT | ( | ) |
Definition at line 363 of file unit_test_alnreader.cpp.
NCBITEST_INIT_CMDLINE | ( | arg_descrs | ) |
Definition at line 368 of file unit_test_alnreader.cpp.
References dirTestFiles(), CArgDescriptions::eDirectory, and CArgDescriptions::eString.
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().
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().
Definition at line 305 of file unit_test_alnreader.cpp.
References CFile::CompareTextContents(), CDirEntry::Copy(), CFile::eIgnoreWs, NStr::EndsWith(), extKeep(), CAlnReader::fGenerateLocalIDs, flags, CDirEntry::GetName(), CDirEntry::GetPath(), CDirEntry::GetTmpName(), STestInfo::mErrorFile, STestInfo::mInFile, STestInfo::mOutFile, MSerial_AsnText, CDirEntry::Remove(), sGetFastaFlags(), and sGetReader().
Referenced by BOOST_AUTO_TEST_CASE().
void sUpdateAll | ( | CDir & | test_cases_dir | ) |
Definition at line 285 of file unit_test_alnreader.cpp.
References extErrors(), extInput(), extOutput(), fFF_Default, fFF_Recursive, FindFilesInDir(), ITERATE, and sUpdateCase().
Referenced by BOOST_AUTO_TEST_CASE().
Definition at line 245 of file unit_test_alnreader.cpp.
References CDirEntry::ConcatPath(), NStr::EndsWith(), extErrors(), extInput(), extOutput(), CAlnReader::fGenerateLocalIDs, flags, CDirEntry::GetPath(), input(), MSerial_AsnText, output, sGetFastaFlags(), sGetReader(), and test_name.
Referenced by BOOST_AUTO_TEST_CASE(), and sUpdateAll().
USING_SCOPE | ( | objects | ) |
USING_NCBI_SCOPE |
Definition at line 51 of file unit_test_alnreader.cpp.