|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Tests for graph visualization utilities. More...
#include <gtest/gtest.h>#include <sstream>#include <stdexcept>#include <string>#include <tpl_graph.H>#include <tpl_graph_utils.H>#include <generate_graph.H>#include <graph_to_tree.H>#include <generate_spanning_tree_picture.H>#include <generate_tree.H>#include <tpl_tree_node.H>Go to the source code of this file.
Classes | |
| class | SimpleGraphTest |
| Simple graph for testing. More... | |
| class | SimpleDigraphTest |
| Simple digraph for testing. More... | |
| class | TreeGraphTest |
| Tree graph for graph_to_tree conversion testing. More... | |
| struct | IntConvert |
| Converter from Graph::Node to int for Tree_Node. More... | |
| struct | WeightFilter< GT > |
Functions | |
| TEST_F (SimpleGraphTest, GenerateGraphvizContainsGraphKeyword) | |
| TEST_F (SimpleDigraphTest, GenerateGraphvizContainsDigraphKeyword) | |
| TEST_F (SimpleGraphTest, GenerateGraphvizContainsAllNodes) | |
| TEST_F (SimpleGraphTest, GenerateGraphvizContainsArcs) | |
| TEST_F (SimpleDigraphTest, GenerateGraphvizContainsDirectedArcs) | |
| TEST_F (SimpleGraphTest, GenerateGraphvizRespectRankdir) | |
| TEST_F (SimpleGraphTest, GenerateGraphvizClosesWithBrace) | |
| TEST_F (SimpleGraphTest, DftNodeAttrOutputsLabel) | |
| TEST_F (SimpleGraphTest, DftArcAttrOutputsLabel) | |
| TEST_F (SimpleGraphTest, DummyAttrReturnsFalse) | |
| TEST_F (SimpleGraphTest, ShadeSpanNodeReturnsEmptyForNullCookie) | |
| TEST_F (SimpleGraphTest, ShadeSpanNodeReturnsShadowForNonNullCookie) | |
| TEST_F (SimpleGraphTest, ShadeSpanArcReturnsArcForNullCookie) | |
| TEST_F (SimpleGraphTest, ShadeSpanArcReturnsShadowForNonNullCookie) | |
| TEST_F (TreeGraphTest, GraphToTreeNodeCreatesRoot) | |
| TEST_F (TreeGraphTest, GraphToTreeNodeCreatesChildren) | |
| TEST_F (TreeGraphTest, GraphToTreeNodePreservesStructure) | |
| TEST_F (TreeGraphTest, GraphToTreeNodeThrowsOnCyclicGraph) | |
| TEST_F (TreeGraphTest, GraphToTreeNodeConvertsTheSameGraphAgain) | |
| TEST_F (TreeGraphTest, GraphToTreeNodeFreesTheTreeIfTheConversionThrows) | |
| TEST_F (TreeGraphTest, GenerateTreeOutputsRoot) | |
| TEST_F (TreeGraphTest, GenerateTreeOutputsDeweyNotation) | |
| TEST (GenerateTreeGraphvizTest, EscapesSpecialCharactersInLabels) | |
| TEST_F (TreeGraphTest, FullPipelineGraphToTreeToOutput) | |
| TEST (EmptyGraphTest, GenerateGraphvizHandlesEmptyGraph) | |
| TEST (SingleNodeGraphTest, GenerateGraphvizHandlesSingleNode) | |
| TEST (SingleNodeTreeTest, GraphToTreeNodeHandlesSingleNode) | |
| TEST (TypeTraitsTest, DftWriteConvertsToString) | |
| TEST_F (SimpleGraphTest, DigraphGraphvizForcesDigraphFormat) | |
| TEST_F (SimpleGraphTest, GenerateGraphvizStructWorks) | |
| TEST_F (SimpleGraphTest, GenerateGraphvizDifferentRankdirs) | |
| TEST (StringNodeGraphTest, GenerateGraphvizWithStringNodes) | |
| TEST (DoubleArcGraphTest, GenerateGraphvizWithDoubleArcs) | |
| TEST (DAGTest, RankGraphvizCreatesSubgraphs) | |
| TEST (ForestTest, GenerateForestOutputsMultipleTrees) | |
| TEST (CustomWriteTest, GenerateTreeWithCustomWriter) | |
| TEST (DeepTreeTest, GenerateTreeHandlesDeepTree) | |
| TEST (WideTreeTest, GenerateTreeHandlesWideTree) | |
| TEST_F (TreeGraphTest, FreeFunctionGraphToTreeNodeWorks) | |
| TEST_F (TreeGraphTest, GraphToTreeNodeFromDifferentRoot) | |
| TEST_F (TreeGraphTest, GraphToTreeNodeWithTransformingConverter) | |
| TEST_F (TreeGraphTest, GraphToTreeNodeWithStringKeys) | |
| TEST_F (SimpleGraphTest, GenerateGraphvizWithArcFilter) | |
| TEST (LargeGraphTest, GenerateGraphvizHandlesLargeGraph) | |
| TEST (LargeTreeTest, GraphToTreeNodeHandlesLargeTree) | |
Tests for graph visualization utilities.
Tests for:
Definition in file graph_visualization_test.cc.
| TEST | ( | CustomWriteTest | , |
| GenerateTreeWithCustomWriter | |||
| ) |
Definition at line 745 of file graph_visualization_test.cc.
References Aleph::Tree_Node< T >::get_key(), out, and root().
| TEST | ( | DAGTest | , |
| RankGraphvizCreatesSubgraphs | |||
| ) |
Definition at line 664 of file graph_visualization_test.cc.
References GTArcCommon< ArcInfo >::get_info(), out, and Aleph::rank_graphviz().
| TEST | ( | DeepTreeTest | , |
| GenerateTreeHandlesDeepTree | |||
| ) |
Definition at line 768 of file graph_visualization_test.cc.
References Aleph::destroy_tree(), Aleph::generate_tree(), Aleph::Tree_Node< T >::get_key(), out, root(), and Aleph::to_string().
| TEST | ( | DoubleArcGraphTest | , |
| GenerateGraphvizWithDoubleArcs | |||
| ) |
Definition at line 648 of file graph_visualization_test.cc.
References out.
| TEST | ( | EmptyGraphTest | , |
| GenerateGraphvizHandlesEmptyGraph | |||
| ) |
Definition at line 508 of file graph_visualization_test.cc.
References out.
| TEST | ( | ForestTest | , |
| GenerateForestOutputsMultipleTrees | |||
| ) |
Definition at line 705 of file graph_visualization_test.cc.
References Aleph::generate_forest(), Aleph::Tree_Node< T >::get_key(), Aleph::Tree_Node< T >::insert_right_sibling(), and out.
| TEST | ( | GenerateTreeGraphvizTest | , |
| EscapesSpecialCharactersInLabels | |||
| ) |
Definition at line 461 of file graph_visualization_test.cc.
References Aleph::Tree_Node< T >::get_key(), out, and root().
| TEST | ( | LargeGraphTest | , |
| GenerateGraphvizHandlesLargeGraph | |||
| ) |
Definition at line 941 of file graph_visualization_test.cc.
| TEST | ( | LargeTreeTest | , |
| GraphToTreeNodeHandlesLargeTree | |||
| ) |
Definition at line 972 of file graph_visualization_test.cc.
References Aleph::count(), Aleph::destroy_tree(), Aleph::Tree_Node< T >::get_key(), and nodes.
| TEST | ( | SingleNodeGraphTest | , |
| GenerateGraphvizHandlesSingleNode | |||
| ) |
Definition at line 521 of file graph_visualization_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and out.
| TEST | ( | SingleNodeTreeTest | , |
| GraphToTreeNodeHandlesSingleNode | |||
| ) |
Definition at line 533 of file graph_visualization_test.cc.
References Aleph::destroy_tree(), Aleph::Tree_Node< T >::get_key(), Aleph::Tree_Node< T >::get_left_child(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TEST | ( | StringNodeGraphTest | , |
| GenerateGraphvizWithStringNodes | |||
| ) |
Definition at line 631 of file graph_visualization_test.cc.
References Aleph::List_SGraph< __Graph_Node, __Graph_Arc >::insert_arc(), Aleph::List_SGraph< __Graph_Node, __Graph_Arc >::insert_node(), and out.
| TEST | ( | TypeTraitsTest | , |
| DftWriteConvertsToString | |||
| ) |
Definition at line 558 of file graph_visualization_test.cc.
References Aleph::Tree_Node< T >::get_key().
| TEST | ( | WideTreeTest | , |
| GenerateTreeHandlesWideTree | |||
| ) |
Definition at line 800 of file graph_visualization_test.cc.
References Aleph::destroy_tree(), Aleph::generate_tree(), Aleph::Tree_Node< T >::get_key(), out, root(), Aleph::to_string(), and WIDTH.
| TEST_F | ( | SimpleDigraphTest | , |
| GenerateGraphvizContainsDigraphKeyword | |||
| ) |
Definition at line 161 of file graph_visualization_test.cc.
References out.
| TEST_F | ( | SimpleDigraphTest | , |
| GenerateGraphvizContainsDirectedArcs | |||
| ) |
Definition at line 193 of file graph_visualization_test.cc.
References out.
| TEST_F | ( | SimpleGraphTest | , |
| DftArcAttrOutputsLabel | |||
| ) |
Definition at line 234 of file graph_visualization_test.cc.
References out.
| TEST_F | ( | SimpleGraphTest | , |
| DftNodeAttrOutputsLabel | |||
| ) |
Definition at line 224 of file graph_visualization_test.cc.
References out.
| TEST_F | ( | SimpleGraphTest | , |
| DigraphGraphvizForcesDigraphFormat | |||
| ) |
Definition at line 574 of file graph_visualization_test.cc.
References out.
| TEST_F | ( | SimpleGraphTest | , |
| DummyAttrReturnsFalse | |||
| ) |
Definition at line 245 of file graph_visualization_test.cc.
| TEST_F | ( | SimpleGraphTest | , |
| GenerateGraphvizClosesWithBrace | |||
| ) |
Definition at line 212 of file graph_visualization_test.cc.
References out.
| TEST_F | ( | SimpleGraphTest | , |
| GenerateGraphvizContainsAllNodes | |||
| ) |
Definition at line 171 of file graph_visualization_test.cc.
References out.
| TEST_F | ( | SimpleGraphTest | , |
| GenerateGraphvizContainsArcs | |||
| ) |
Definition at line 183 of file graph_visualization_test.cc.
References out.
| TEST_F | ( | SimpleGraphTest | , |
| GenerateGraphvizContainsGraphKeyword | |||
| ) |
Definition at line 149 of file graph_visualization_test.cc.
References out.
| TEST_F | ( | SimpleGraphTest | , |
| GenerateGraphvizDifferentRankdirs | |||
| ) |
Definition at line 617 of file graph_visualization_test.cc.
References out.
| TEST_F | ( | SimpleGraphTest | , |
| GenerateGraphvizRespectRankdir | |||
| ) |
Definition at line 203 of file graph_visualization_test.cc.
References out.
| TEST_F | ( | SimpleGraphTest | , |
| GenerateGraphvizStructWorks | |||
| ) |
Definition at line 599 of file graph_visualization_test.cc.
References WriteNode::operator()(), out, and Aleph::to_string().
| TEST_F | ( | SimpleGraphTest | , |
| GenerateGraphvizWithArcFilter | |||
| ) |
Definition at line 909 of file graph_visualization_test.cc.
References out.
| TEST_F | ( | SimpleGraphTest | , |
| ShadeSpanArcReturnsArcForNullCookie | |||
| ) |
Definition at line 270 of file graph_visualization_test.cc.
References ARC_COOKIE.
| TEST_F | ( | SimpleGraphTest | , |
| ShadeSpanArcReturnsShadowForNonNullCookie | |||
| ) |
Definition at line 278 of file graph_visualization_test.cc.
References ARC_COOKIE.
| TEST_F | ( | SimpleGraphTest | , |
| ShadeSpanNodeReturnsEmptyForNullCookie | |||
| ) |
Definition at line 256 of file graph_visualization_test.cc.
References NODE_COOKIE.
| TEST_F | ( | SimpleGraphTest | , |
| ShadeSpanNodeReturnsShadowForNonNullCookie | |||
| ) |
Definition at line 263 of file graph_visualization_test.cc.
References NODE_COOKIE.
| TEST_F | ( | TreeGraphTest | , |
| FreeFunctionGraphToTreeNodeWorks | |||
| ) |
Definition at line 830 of file graph_visualization_test.cc.
References Aleph::destroy_tree(), Aleph::Tree_Node< T >::get_key(), and root().
| TEST_F | ( | TreeGraphTest | , |
| FullPipelineGraphToTreeToOutput | |||
| ) |
Definition at line 485 of file graph_visualization_test.cc.
References Aleph::destroy_tree(), Aleph::generate_tree(), out, and root().
| TEST_F | ( | TreeGraphTest | , |
| GenerateTreeOutputsDeweyNotation | |||
| ) |
Definition at line 446 of file graph_visualization_test.cc.
References Aleph::destroy_tree(), Aleph::generate_tree(), out, and root().
| TEST_F | ( | TreeGraphTest | , |
| GenerateTreeOutputsRoot | |||
| ) |
Definition at line 431 of file graph_visualization_test.cc.
References Aleph::destroy_tree(), Aleph::generate_tree(), out, and root().
| TEST_F | ( | TreeGraphTest | , |
| GraphToTreeNodeConvertsTheSameGraphAgain | |||
| ) |
Definition at line 369 of file graph_visualization_test.cc.
References Aleph::destroy_tree(), nodes, root(), and Aleph::Tree_Node< T >::traverse().
| TEST_F | ( | TreeGraphTest | , |
| GraphToTreeNodeCreatesChildren | |||
| ) |
Definition at line 311 of file graph_visualization_test.cc.
References Aleph::destroy_tree(), Aleph::Tree_Node< T >::get_left_child(), and root().
| TEST_F | ( | TreeGraphTest | , |
| GraphToTreeNodeCreatesRoot | |||
| ) |
Definition at line 300 of file graph_visualization_test.cc.
References Aleph::destroy_tree(), Aleph::Tree_Node< T >::get_key(), and root().
| TEST_F | ( | TreeGraphTest | , |
| GraphToTreeNodeFreesTheTreeIfTheConversionThrows | |||
| ) |
Definition at line 414 of file graph_visualization_test.cc.
References root().
| TEST_F | ( | TreeGraphTest | , |
| GraphToTreeNodeFromDifferentRoot | |||
| ) |
Definition at line 842 of file graph_visualization_test.cc.
References Aleph::destroy_tree(), Aleph::Tree_Node< T >::get_key(), and Aleph::Tree_Node< T >::get_left_child().
| TEST_F | ( | TreeGraphTest | , |
| GraphToTreeNodePreservesStructure | |||
| ) |
Definition at line 331 of file graph_visualization_test.cc.
References Aleph::destroy_tree(), and root().
| TEST_F | ( | TreeGraphTest | , |
| GraphToTreeNodeThrowsOnCyclicGraph | |||
| ) |
Definition at line 358 of file graph_visualization_test.cc.
References root().
| TEST_F | ( | TreeGraphTest | , |
| GraphToTreeNodeWithStringKeys | |||
| ) |
Definition at line 877 of file graph_visualization_test.cc.
References Aleph::destroy_tree(), Aleph::Tree_Node< T >::get_key(), root(), and Aleph::to_string().
| TEST_F | ( | TreeGraphTest | , |
| GraphToTreeNodeWithTransformingConverter | |||
| ) |
Definition at line 859 of file graph_visualization_test.cc.
References Aleph::destroy_tree(), Aleph::Tree_Node< T >::get_key(), and root().