NCBI C++ ToolKit
Classes | Typedefs | Functions | Variables
unit_test_feature_edit.cpp File Reference
#include <ncbi_pch.hpp>
#include <objmgr/scope.hpp>
#include <objmgr/object_manager.hpp>
#include <objmgr/mapped_feat.hpp>
#include <objmgr/seq_feat_handle.hpp>
#include <objmgr/util/feature_edit.hpp>
#include <corelib/ncbi_system.hpp>
#include <corelib/ncbifile.hpp>
#include <objects/seqfeat/Seq_feat.hpp>
#include <objects/seq/Seq_annot.hpp>
#include <corelib/test_boost.hpp>
#include <common/test_assert.h>
+ Include dependency graph for unit_test_feature_edit.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

struct  STestInfo
 
class  CTestNameToInfoMapLoader
 

Typedefs

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

Functions

 USING_SCOPE (objects)
 
CRef< CSeq_feats_ReadFeat (const string &filename)
 
bool s_AreFeatsEqual (const CSeq_feat &feat1, const CSeq_feat &feat2)
 
CRange< TSeqPoss_GetRangeFromString (const string &rangeString)
 
void sRunFeatureTrimTest (const string &testName, const STestInfo &testInfo, const bool keep)
 
const string dirTestFiles ("feature_edit_test_cases")
 
 NCBITEST_AUTO_INIT ()
 
 NCBITEST_INIT_CMDLINE (arg_descrs)
 
 NCBITEST_AUTO_FINI ()
 
 BOOST_AUTO_TEST_CASE (RunTests)
 

Variables

 USING_NCBI_SCOPE
 
CRef< CScopes_pScope
 

Typedef Documentation

◆ TTestName

using TTestName = string

Definition at line 79 of file unit_test_feature_edit.cpp.

◆ TTestNameToInfoMap

Definition at line 80 of file unit_test_feature_edit.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE()

BOOST_AUTO_TEST_CASE ( RunTests  )

◆ dirTestFiles()

const string dirTestFiles ( "feature_edit_test_cases"  )

Referenced by NCBITEST_INIT_CMDLINE().

◆ NCBITEST_AUTO_FINI()

NCBITEST_AUTO_FINI ( )

Definition at line 209 of file unit_test_feature_edit.cpp.

◆ NCBITEST_AUTO_INIT()

NCBITEST_AUTO_INIT ( )

Definition at line 190 of file unit_test_feature_edit.cpp.

References CObjectManager::GetInstance(), Ref(), and s_pScope.

◆ NCBITEST_INIT_CMDLINE()

NCBITEST_INIT_CMDLINE ( arg_descrs  )

Definition at line 196 of file unit_test_feature_edit.cpp.

References dirTestFiles(), and CArgDescriptions::eDirectory.

◆ s_AreFeatsEqual()

bool s_AreFeatsEqual ( const CSeq_feat feat1,
const CSeq_feat feat2 
)

Definition at line 66 of file unit_test_feature_edit.cpp.

References CSerialObject::Equals().

◆ s_GetRangeFromString()

CRange<TSeqPos> s_GetRangeFromString ( const string rangeString)

Definition at line 85 of file unit_test_feature_edit.cpp.

References NStr::Split(), and NStr::StringToInt().

Referenced by CTestNameToInfoMapLoader::operator()().

◆ s_ReadFeat()

CRef<CSeq_feat> s_ReadFeat ( const string filename)

Definition at line 56 of file unit_test_feature_edit.cpp.

References MSerial_AsnText.

Referenced by sRunFeatureTrimTest().

◆ sRunFeatureTrimTest()

void sRunFeatureTrimTest ( const string testName,
const STestInfo testInfo,
const bool  keep 
)

◆ USING_SCOPE()

USING_SCOPE ( objects  )

Variable Documentation

◆ s_pScope

CRef<CScope> s_pScope

Definition at line 83 of file unit_test_feature_edit.cpp.

Referenced by BOOST_AUTO_TEST_CASE(), and NCBITEST_AUTO_INIT().

◆ USING_NCBI_SCOPE

USING_NCBI_SCOPE

Definition at line 53 of file unit_test_feature_edit.cpp.

Modified on Wed Sep 04 15:06:39 2024 by modify_doxy.py rev. 669887