NCBI C++ ToolKit
|
#include <ncbi_pch.hpp>
#include <corelib/ncbi_system.hpp>
#include <corelib/ncbiapp.hpp>
#include <corelib/ncbifile.hpp>
#include <connect/ncbi_core_cxx.hpp>
#include <serial/serial.hpp>
#include <serial/objistr.hpp>
#include <objmgr/object_manager.hpp>
#include <objmgr/scope.hpp>
#include <objmgr/seq_entry_ci.hpp>
#include <objmgr/bioseq_ci.hpp>
#include <objmgr/annot_ci.hpp>
#include <objtools/data_loaders/genbank/gbloader.hpp>
#include <dbapi/driver/drivers.hpp>
#include <objtools/writers/writer_exception.hpp>
#include <objtools/writers/ucscregion_writer.hpp>
#include "error_logger.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 | |
struct | STestInfo |
class | CTestNameToInfoMapLoader |
Typedefs | |
typedef string | TTestName |
typedef map< TTestName, STestInfo > | TTestNameToInfoMap |
Functions | |
USING_SCOPE (objects) | |
const string | extInput ("asn") |
const string | extOutput ("ucsc") |
const string | extErrors ("errors") |
const string | extKeep ("new") |
const string | dirTestFiles ("ucscwriter_test_cases") |
CUCSCRegionWriter * | sGetWriter (CScope &scope, CNcbiOstream &ostr) |
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 82 of file unit_test_ucscwriter.cpp.
typedef map<TTestName, STestInfo> TTestNameToInfoMap |
Definition at line 83 of file unit_test_ucscwriter.cpp.
BOOST_AUTO_TEST_CASE | ( | RunTests | ) |
Definition at line 340 of file unit_test_ucscwriter.cpp.
References 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 CTestNameToInfoMapLoader::operator()(), and sRunTest().
Referenced by BOOST_AUTO_TEST_CASE(), sUpdateAll(), and sUpdateCase().
NCBITEST_AUTO_FINI | ( | ) |
Definition at line 336 of file unit_test_ucscwriter.cpp.
NCBITEST_AUTO_INIT | ( | ) |
Definition at line 314 of file unit_test_ucscwriter.cpp.
NCBITEST_INIT_CMDLINE | ( | arg_descrs | ) |
Definition at line 318 of file unit_test_ucscwriter.cpp.
References dirTestFiles(), CArgDescriptions::eDirectory, and CArgDescriptions::eString.
CUCSCRegionWriter* sGetWriter | ( | CScope & | scope, |
CNcbiOstream & | ostr | ||
) |
Definition at line 165 of file unit_test_ucscwriter.cpp.
Referenced by sRunTest(), and sUpdateCase().
Definition at line 246 of file unit_test_ucscwriter.cpp.
References CScope::AddDefaults(), CScope::AddTopLevelSeqEntry(), CFile::CompareTextContents(), CDirEntry::Copy(), CFile::eIgnoreWs, eSerial_AsnText, extKeep(), CObjectManager::GetInstance(), CDirEntry::GetName(), CDirEntry::GetPath(), CDirEntry::GetTmpName(), STestInfo::mErrorFile, STestInfo::mInFile, STestInfo::mObjType, STestInfo::mOutFile, CObjectIStream::Open(), CGBDataLoader::RegisterInObjectManager(), CDirEntry::Remove(), sGetWriter(), CUCSCRegionWriter::WriteAnnot(), CWriterBase::WriteFooter(), CWriterBase::WriteHeader(), and CWriterBase::WriteSeqEntryHandle().
Referenced by BOOST_AUTO_TEST_CASE().
void sUpdateAll | ( | CDir & | test_cases_dir | ) |
Definition at line 224 of file unit_test_ucscwriter.cpp.
References extErrors(), extInput(), extOutput(), fFF_Default, fFF_Recursive, FindFilesInDir(), ITERATE, and sUpdateCase().
Referenced by BOOST_AUTO_TEST_CASE().
Definition at line 170 of file unit_test_ucscwriter.cpp.
References CScope::AddDefaults(), CScope::AddTopLevelSeqEntry(), CDirEntry::ConcatPath(), eSerial_AsnText, extErrors(), extInput(), extOutput(), CObjectManager::GetInstance(), CDirEntry::GetPath(), input(), CObjectIStream::Open(), output, CGBDataLoader::RegisterInObjectManager(), sGetWriter(), NStr::SplitInTwo(), test_name, test_type(), CUCSCRegionWriter::WriteAnnot(), CWriterBase::WriteFooter(), CWriterBase::WriteHeader(), and CWriterBase::WriteSeqEntryHandle().
Referenced by BOOST_AUTO_TEST_CASE(), and sUpdateAll().
USING_SCOPE | ( | objects | ) |
USING_NCBI_SCOPE |
Definition at line 61 of file unit_test_ucscwriter.cpp.