|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Tests for Tpl Components. More...
#include <gtest/gtest.h>#include <tpl_components.H>#include <tpl_graph.H>#include <tpl_sgraph.H>#include <tpl_agraph.H>Go to the source code of this file.
Classes | |
| class | BuildSubgraphTest |
| class | InconnectedComponentsTest |
| class | ComponentsAllGraphs< GraphType > |
| class | ComponentsUndirectedGraphs< GraphType > |
| class | ComponentsDigraphs< GraphType > |
Typedefs | |
| using | ListGraph = List_Graph< Graph_Node< int >, Graph_Arc< int > > |
| using | ListDigraph = List_Digraph< Graph_Node< int >, Graph_Arc< int > > |
| using | SparseGraph = List_SGraph< Graph_Snode< int >, Graph_Sarc< int > > |
| using | SparseDigraph = List_SDigraph< Graph_Snode< int >, Graph_Sarc< int > > |
| using | ArrayGraph = Array_Graph< Graph_Anode< int >, Graph_Aarc< int > > |
| using | ArrayDigraph = Array_Digraph< Graph_Anode< int >, Graph_Aarc< int > > |
| using | GraphTypes = ::testing::Types< ListGraph, ListDigraph, SparseGraph, SparseDigraph, ArrayGraph, ArrayDigraph > |
| using | UndirectedGraphTypes = ::testing::Types< ListGraph, SparseGraph, ArrayGraph > |
| using | DigraphTypes = ::testing::Types< ListDigraph, SparseDigraph, ArrayDigraph > |
Tests for Tpl Components.
Definition in file tpl_components_test.cc.
| using ArrayDigraph = Array_Digraph<Graph_Anode<int>, Graph_Aarc<int> > |
Definition at line 72 of file tpl_components_test.cc.
| using ArrayGraph = Array_Graph<Graph_Anode<int>, Graph_Aarc<int> > |
Definition at line 71 of file tpl_components_test.cc.
| using DigraphTypes = ::testing::Types< ListDigraph, SparseDigraph, ArrayDigraph > |
Definition at line 493 of file tpl_components_test.cc.
| using GraphTypes = ::testing::Types< ListGraph, ListDigraph, SparseGraph, SparseDigraph, ArrayGraph, ArrayDigraph > |
Definition at line 458 of file tpl_components_test.cc.
| using ListDigraph = List_Digraph<Graph_Node<int>, Graph_Arc<int> > |
Definition at line 64 of file tpl_components_test.cc.
| using ListGraph = List_Graph<Graph_Node<int>, Graph_Arc<int> > |
Definition at line 63 of file tpl_components_test.cc.
| using SparseDigraph = List_SDigraph<Graph_Snode<int>, Graph_Sarc<int> > |
Definition at line 68 of file tpl_components_test.cc.
| using SparseGraph = List_SGraph<Graph_Snode<int>, Graph_Sarc<int> > |
Definition at line 67 of file tpl_components_test.cc.
| using UndirectedGraphTypes = ::testing::Types< ListGraph, SparseGraph, ArrayGraph > |
Definition at line 478 of file tpl_components_test.cc.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 674 of file tpl_components_test.cc.
| TEST_F | ( | BuildSubgraphTest | , |
| BuildNodeList | |||
| ) |
Definition at line 203 of file tpl_components_test.cc.
References Aleph::DynList< T >::size().
| TEST_F | ( | BuildSubgraphTest | , |
| DisconnectedGraph_BuildsOneComponent | |||
| ) |
Definition at line 143 of file tpl_components_test.cc.
| TEST_F | ( | BuildSubgraphTest | , |
| IgnoresTheCookiesThatTheGraphHad | |||
| ) |
Definition at line 220 of file tpl_components_test.cc.
References Aleph::and, ARC_COOKIE, Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and NODE_COOKIE.
| TEST_F | ( | BuildSubgraphTest | , |
| NodeMapping | |||
| ) |
Definition at line 165 of file tpl_components_test.cc.
| TEST_F | ( | BuildSubgraphTest | , |
| NullptrThrows | |||
| ) |
Definition at line 265 of file tpl_components_test.cc.
| TEST_F | ( | BuildSubgraphTest | , |
| ReturnSubgraph | |||
| ) |
Definition at line 186 of file tpl_components_test.cc.
| TEST_F | ( | BuildSubgraphTest | , |
| SingleNode | |||
| ) |
Definition at line 97 of file tpl_components_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TEST_F | ( | BuildSubgraphTest | , |
| TriangleGraph | |||
| ) |
Definition at line 125 of file tpl_components_test.cc.
| TEST_F | ( | BuildSubgraphTest | , |
| TwoNodesConnected | |||
| ) |
Definition at line 110 of file tpl_components_test.cc.
| TEST_F | ( | InconnectedComponentsTest | , |
| ComputeAsNodeLists | |||
| ) |
Definition at line 342 of file tpl_components_test.cc.
References Aleph::DynList< T >::size().
| TEST_F | ( | InconnectedComponentsTest | , |
| CountComponents | |||
| ) |
Definition at line 358 of file tpl_components_test.cc.
References Aleph::Unconnected_Components< GT, SA >::count_components().
| TEST_F | ( | InconnectedComponentsTest | , |
| EmptyGraph | |||
| ) |
Definition at line 333 of file tpl_components_test.cc.
| TEST_F | ( | InconnectedComponentsTest | , |
| IsConnected_EmptyGraph | |||
| ) |
Definition at line 398 of file tpl_components_test.cc.
References Aleph::Unconnected_Components< GT, SA >::is_connected().
| TEST_F | ( | InconnectedComponentsTest | , |
| IsConnected_False | |||
| ) |
Definition at line 385 of file tpl_components_test.cc.
References Aleph::Unconnected_Components< GT, SA >::is_connected().
| TEST_F | ( | InconnectedComponentsTest | , |
| IsConnected_SingleNode | |||
| ) |
Definition at line 405 of file tpl_components_test.cc.
References Aleph::Unconnected_Components< GT, SA >::is_connected().
| TEST_F | ( | InconnectedComponentsTest | , |
| IsConnected_True | |||
| ) |
Definition at line 372 of file tpl_components_test.cc.
References Aleph::Unconnected_Components< GT, SA >::is_connected().
| TEST_F | ( | InconnectedComponentsTest | , |
| LargeConnectedGraph | |||
| ) |
Definition at line 429 of file tpl_components_test.cc.
References Aleph::DynArray< T >::append(), Aleph::Unconnected_Components< GT, SA >::count_components(), Aleph::Unconnected_Components< GT, SA >::is_connected(), N, and nodes.
| TEST_F | ( | InconnectedComponentsTest | , |
| ManyComponents | |||
| ) |
Definition at line 418 of file tpl_components_test.cc.
References Aleph::Unconnected_Components< GT, SA >::count_components().
| TEST_F | ( | InconnectedComponentsTest | , |
| SingleComponent | |||
| ) |
Definition at line 278 of file tpl_components_test.cc.
| TEST_F | ( | InconnectedComponentsTest | , |
| ThreeComponents | |||
| ) |
Definition at line 319 of file tpl_components_test.cc.
| TEST_F | ( | InconnectedComponentsTest | , |
| TwoComponents | |||
| ) |
Definition at line 294 of file tpl_components_test.cc.
| TYPED_TEST | ( | ComponentsAllGraphs | , |
| BuildSubgraphNullptrThrows | |||
| ) |
Definition at line 568 of file tpl_components_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TYPED_TEST | ( | ComponentsAllGraphs | , |
| BuildSubgraphSingleNode | |||
| ) |
Definition at line 529 of file tpl_components_test.cc.
References GraphCommon< GT, Node, Arc >::get_num_arcs(), GraphCommon< GT, Node, Arc >::get_num_nodes(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), GraphCommon< GT, Node, Arc >::reset_arcs(), and GraphCommon< GT, Node, Arc >::reset_nodes().
| TYPED_TEST | ( | ComponentsAllGraphs | , |
| BuildSubgraphTriangle | |||
| ) |
Definition at line 546 of file tpl_components_test.cc.
References GraphCommon< GT, Node, Arc >::get_num_arcs(), GraphCommon< GT, Node, Arc >::get_num_nodes(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), GraphCommon< GT, Node, Arc >::reset_arcs(), and GraphCommon< GT, Node, Arc >::reset_nodes().
| TYPED_TEST | ( | ComponentsDigraphs | , |
| EveryOperationRejectsADigraph | |||
| ) |
Definition at line 504 of file tpl_components_test.cc.
References Aleph::Unconnected_Components< GT, SA >::count_components(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), Aleph::Unconnected_Components< GT, SA >::is_connected(), and Aleph::HTList::is_empty().
| TYPED_TEST | ( | ComponentsUndirectedGraphs | , |
| CountComponents | |||
| ) |
Definition at line 619 of file tpl_components_test.cc.
References Aleph::Unconnected_Components< GT, SA >::count_components(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TYPED_TEST | ( | ComponentsUndirectedGraphs | , |
| EmptyGraphIsConnected | |||
| ) |
Definition at line 663 of file tpl_components_test.cc.
References Aleph::Unconnected_Components< GT, SA >::is_connected().
| TYPED_TEST | ( | ComponentsUndirectedGraphs | , |
| IsConnectedFalse | |||
| ) |
Definition at line 647 of file tpl_components_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::Unconnected_Components< GT, SA >::is_connected().
| TYPED_TEST | ( | ComponentsUndirectedGraphs | , |
| IsConnectedTrue | |||
| ) |
Definition at line 633 of file tpl_components_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::Unconnected_Components< GT, SA >::is_connected().
| TYPED_TEST | ( | ComponentsUndirectedGraphs | , |
| SingleComponent | |||
| ) |
Definition at line 581 of file tpl_components_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TYPED_TEST | ( | ComponentsUndirectedGraphs | , |
| TwoComponents | |||
| ) |
Definition at line 599 of file tpl_components_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TYPED_TEST_SUITE | ( | ComponentsAllGraphs | , |
| GraphTypes | |||
| ) |
| TYPED_TEST_SUITE | ( | ComponentsDigraphs | , |
| DigraphTypes | |||
| ) |
| TYPED_TEST_SUITE | ( | ComponentsUndirectedGraphs | , |
| UndirectedGraphTypes | |||
| ) |