& golden_name,
52 const string& out_name,
53 const string& keep_name,
56 CFilegolden_file(golden_name);
93arg_descrs->AddDefaultKey(
95 "GOLDEN_SEQFEATS_FILE",
96 "Override location of golden seqfeats file",
99arg_descrs->AddDefaultKey(
101 "SEQFEATS_OUTPUT_FILE",
102 "Override location of seqfeats output file",
105arg_descrs->AddDefaultKey(
107 "GOLDEN_SOTERMS_FILE",
108 "Override location of golden so-terms file",
111arg_descrs->AddDefaultKey(
113 "SEQFEATS_SOTERMS_FILE",
114 "Override location of so-terms output file",
119 "Retain output on error",
123 "Regenerate golden files",
146BOOST_CHECK(success);
165ostr <<
string(80,
'-') <<
"\n";
166ostr << term <<
":\n";
167ostr <<
string(80,
'-') <<
"\n";
169BOOST_CHECK_MESSAGE(success,
"CSoMap::SoTypeToFeature failure");
171ostr <<
"ERROR!\n\n";
182 "Post processing diffs.");
200ostr <<
string(80,
'-') <<
"\n";
202ostr <<
string(80,
'-') <<
"\n";
204BOOST_CHECK_MESSAGE(success,
"CSoMap::FeatureToSoType failure");
206ostr <<
"ERROR!\n\n";
209ostr << so_type <<
"\n\n";
216 "Post processing diffs.");
static CNcbiApplication * Instance(void)
Singleton method.
namespace ncbi::objects::
static bool SoTypeToFeature(std::string_view, CSeq_feat &, bool=false)
static bool FeatureToSoType(const CSeq_feat &, string &)
static bool GetSupportedSoTerms(vector< string > &)
virtual const CArgs & GetArgs(void) const
Get parsed command line arguments.
@ eString
An arbitrary string.
static string CreateAbsolutePath(const string &path, ERelativeToWhat rtw=eRelativeToCwd)
Get an absolute path from some, possibly relative, path.
virtual bool Copy(const string &new_path, TCopyFlags flags=fCF_Default, size_t buf_size=0) const
Copy a file.
virtual bool Remove(TRemoveFlags flags=eRecursive) const
Remove a directory entry.
bool CompareTextContents(const string &file, ECompareText mode, size_t buf_size=0) const
Compare files contents in text form.
static string GetTmpName(ETmpFileCreationMode mode=eTmpFileGetName)
Get temporary file name.
void SetLocation(TLocation &value)
Assign a value to Location data member.
Defines the CNcbiApplication and CAppException classes for creating NCBI applications.
Defines classes: CDirEntry, CFile, CDir, CSymLink, CMemoryFile, CFileUtil, CFileLock,...
Utility stuff for more convenient using of Boost.Test library.
const string default_golden_feats("data/unit_test_so_map.golden_feats")
vector< string > vec_so_supported_terms
const string default_golden_so("data/unit_test_so_map.golden_so")
vector< CRef< CSeq_feat > > vec_generated_seqfeats
bool PostProcessFile(const string &golden_name, const string &out_name, const string &keep_name, bool keep_diffs)
BOOST_AUTO_TEST_CASE(so_supported_terms)
const string default_output_feats("data/unit_test_so_map.output_feats")
const string default_output_so("data/unit_test_so_map.output_so")
NCBITEST_INIT_CMDLINE(arg_descrs)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4