NCBI C++ ToolKit
Functions | Variables
phytree_format_unit_test.cpp File Reference
#include <ncbi_pch.hpp>
#include <objmgr/object_manager.hpp>
#include <objmgr/scope.hpp>
#include <objtools/data_loaders/genbank/gbloader.hpp>
#include <objects/seqalign/Seq_align_set.hpp>
#include <serial/serial.hpp>
#include <serial/objistr.hpp>
#include <serial/objostr.hpp>
#include <algo/phy_tree/phytree_calc.hpp>
#include <algo/phy_tree/phytree_format/phytree_format.hpp>
#include <corelib/test_boost.hpp>
+ Include dependency graph for phytree_format_unit_test.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Functions

 USING_SCOPE (objects)
 
static CRef< CScopes_CreateScope (void)
 
static bool s_IsLeaf (const CNode &node)
 
static bool s_TestTreeContainer (const CBioTreeContainer &tree, int num_leaves)
 
 BOOST_AUTO_TEST_CASE (TestCreateTreeFromCalcProtein)
 
 BOOST_AUTO_TEST_CASE (TestCreateTreeFromCalcNucleotide)
 
 BOOST_AUTO_TEST_CASE (TestInitTreeFeatures)
 
 BOOST_AUTO_TEST_CASE (TestMultipleQueries)
 
 BOOST_AUTO_TEST_CASE (TestInitTreeFeaturesWithBadInput)
 
 BOOST_AUTO_TEST_CASE (TestInitLabels)
 
 BOOST_AUTO_TEST_CASE (TestIsSingleBlastName)
 
 BOOST_AUTO_TEST_CASE (TestSimplifyByBlastName)
 
 BOOST_AUTO_TEST_CASE (TestFullyExpand)
 
 BOOST_AUTO_TEST_CASE (TestExpandCollapse)
 
 BOOST_AUTO_TEST_CASE (TestRerootTree)
 
 BOOST_AUTO_TEST_CASE (TestShowSubtree)
 
 BOOST_AUTO_TEST_CASE (TestPrintTreeNewick)
 
 BOOST_AUTO_TEST_CASE (TestPrintTreeNexus)
 
static bool s_TestFeatureDict (const CFeatureDictSet &dict)
 
static bool s_TestNode (const CNode &node, bool is_leaf)
 

Variables

 USING_NCBI_SCOPE
 
static const int kNodeId = 2
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/14]

BOOST_AUTO_TEST_CASE ( TestCreateTreeFromCalcNucleotide  )

◆ BOOST_AUTO_TEST_CASE() [2/14]

BOOST_AUTO_TEST_CASE ( TestCreateTreeFromCalcProtein  )

◆ BOOST_AUTO_TEST_CASE() [3/14]

BOOST_AUTO_TEST_CASE ( TestExpandCollapse  )

◆ BOOST_AUTO_TEST_CASE() [4/14]

BOOST_AUTO_TEST_CASE ( TestFullyExpand  )

◆ BOOST_AUTO_TEST_CASE() [5/14]

BOOST_AUTO_TEST_CASE ( TestInitLabels  )

◆ BOOST_AUTO_TEST_CASE() [6/14]

BOOST_AUTO_TEST_CASE ( TestInitTreeFeatures  )

◆ BOOST_AUTO_TEST_CASE() [7/14]

BOOST_AUTO_TEST_CASE ( TestInitTreeFeaturesWithBadInput  )

◆ BOOST_AUTO_TEST_CASE() [8/14]

BOOST_AUTO_TEST_CASE ( TestIsSingleBlastName  )

◆ BOOST_AUTO_TEST_CASE() [9/14]

BOOST_AUTO_TEST_CASE ( TestMultipleQueries  )

◆ BOOST_AUTO_TEST_CASE() [10/14]

BOOST_AUTO_TEST_CASE ( TestPrintTreeNewick  )

◆ BOOST_AUTO_TEST_CASE() [11/14]

BOOST_AUTO_TEST_CASE ( TestPrintTreeNexus  )

◆ BOOST_AUTO_TEST_CASE() [12/14]

BOOST_AUTO_TEST_CASE ( TestRerootTree  )

◆ BOOST_AUTO_TEST_CASE() [13/14]

BOOST_AUTO_TEST_CASE ( TestShowSubtree  )

◆ BOOST_AUTO_TEST_CASE() [14/14]

BOOST_AUTO_TEST_CASE ( TestSimplifyByBlastName  )

◆ s_CreateScope()

static CRef< CScope > s_CreateScope ( void  )
static

◆ s_IsLeaf()

static bool s_IsLeaf ( const CNode node)
static

◆ s_TestFeatureDict()

static bool s_TestFeatureDict ( const CFeatureDictSet dict)
static

◆ s_TestNode()

static bool s_TestNode ( const CNode node,
bool  is_leaf 
)
static

◆ s_TestTreeContainer()

static bool s_TestTreeContainer ( const CBioTreeContainer tree,
int  num_leaves 
)
static

Definition at line 863 of file phytree_format_unit_test.cpp.

References ITERATE, s_IsLeaf(), s_TestFeatureDict(), and s_TestNode().

Referenced by BOOST_AUTO_TEST_CASE().

◆ USING_SCOPE()

USING_SCOPE ( objects  )

Variable Documentation

◆ kNodeId

const int kNodeId = 2
static

Definition at line 66 of file phytree_format_unit_test.cpp.

Referenced by BOOST_AUTO_TEST_CASE().

◆ USING_NCBI_SCOPE

USING_NCBI_SCOPE

Definition at line 52 of file phytree_format_unit_test.cpp.

Modified on Fri Sep 20 14:57:32 2024 by modify_doxy.py rev. 669887