|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Tests for Tpl Sgraph. More...
#include <gtest/gtest.h>#include <tpl_sgraph.H>#include <string>#include <type_traits>#include <utility>#include <vector>Go to the source code of this file.
Functions | |
| TEST (GraphSnode, DefaultConstruction) | |
| TEST (GraphSnode, ConstructionWithInfo) | |
| TEST (GraphSnode, CopyConstruction) | |
| TEST (GraphSnode, MoveConstruction) | |
| TEST (GraphSnode, CopyAssignment) | |
| TEST (GraphSnode, SelfAssignment) | |
| TEST (GraphSnode, ConstructionFromPointer) | |
| TEST (GraphSarc, DefaultConstruction) | |
| TEST (GraphSarc, ConstructionWithInfo) | |
| TEST (GraphSarc, CopyConstruction) | |
| TEST (GraphSarc, CopyAssignment) | |
| TEST (GraphSarc, SelfAssignment) | |
| TEST (GraphSarc, ConstructionWithEndpoints) | |
| TEST (ListSGraph, DefaultConstruction) | |
| TEST (ListSGraph, InsertNode) | |
| TEST (ListSGraph, InsertArc) | |
| TEST (ListSGraph, UndirectedArcSymmetry) | |
| TEST (ListSGraph, RemoveArc) | |
| TEST (ListSGraph, RemoveNode) | |
| TEST (ListSGraph, MultipleArcs) | |
| TEST (ListSDigraph, IsDirected) | |
| TEST (ListSDigraph, DirectedArcAsymmetry) | |
| TEST (ListSDigraph, BidirectionalArcs) | |
| TEST (ListSGraph, NodeIterator) | |
| TEST (ListSGraph, ArcIterator) | |
| TEST (ListSGraph, IteratorsHandOutPointersByValue) | |
| TEST (ListSGraph, NodeArcIterator) | |
| TEST (ListSGraph, NodeArcIteratorGetTgtNode) | |
| TEST (ListSGraph, ArcIteratorGetEndpoints) | |
| TEST (ListSGraph, CopyConstruction) | |
| TEST (ListSGraph, MoveConstruction) | |
| TEST (ListSGraph, CopyAssignment) | |
| TEST (ListSGraph, SelfAssignment) | |
| TEST (ListSGraph, MoveAssignment) | |
| TEST (ListSDigraph, CopyConstruction) | |
| TEST (ListSDigraph, MoveConstruction) | |
| TEST (ListSDigraph, CopyAssignment) | |
| TEST (ListSDigraph, MoveAssignment) | |
| TEST (ListSGraph, LargeGraph) | |
| TEST (ListSDigraph, LargeDigraph) | |
| TEST (ListSGraph, SelfLoop) | |
| TEST (ListSDigraph, SelfLoop) | |
| TEST (ListSGraph, EmptyGraphIterators) | |
| TEST (ListSGraph, GetFirstNodeArc) | |
| TEST (ListSGraph, GetFirstArcNodeThrowsWhenEmpty) | |
| TEST (ListSGraph, RemoveAllNodes) | |
| TEST (ListSGraph, SwapGraphs) | |
| TEST (ListSGraph, StringNodeInfo) | |
| TEST (ListSGraph, NodeIteratorCurrentNode) | |
| TEST (ListSGraph, NodeArcIteratorCurrentArc) | |
| TEST (ListSGraph, ArcIteratorCurrentArc) | |
| TEST (ListSGraph, ComplexOperations) | |
| TEST (DigraphWrapper, DigraphInheritsFromBaseGraph) | |
| TEST (DigraphWrapper, DigraphCopyPreservesDirectedFlag) | |
| TEST (DigraphWrapper, DigraphMovePreservesDirectedFlag) | |
| TEST (DigraphWrapper, DigraphCopyAssignmentPreservesDirectedFlag) | |
| TEST (DigraphWrapper, DigraphMoveAssignmentPreservesDirectedFlag) | |
| TEST (DigraphWrapper, DigraphSelfAssignment) | |
| TEST (DigraphWrapper, DirectedArcNotVisibleFromTarget) | |
| TEST (ConceptsTest, SGraphIteratorsSatisfyConcepts) | |
Tests for Tpl Sgraph.
Definition in file tpl_sgraph_test.cc.
| TEST | ( | ConceptsTest | , |
| SGraphIteratorsSatisfyConcepts | |||
| ) |
| TEST | ( | DigraphWrapper | , |
| DigraphCopyAssignmentPreservesDirectedFlag | |||
| ) |
Definition at line 839 of file tpl_sgraph_test.cc.
| TEST | ( | DigraphWrapper | , |
| DigraphCopyPreservesDirectedFlag | |||
| ) |
Definition at line 815 of file tpl_sgraph_test.cc.
| TEST | ( | DigraphWrapper | , |
| DigraphInheritsFromBaseGraph | |||
| ) |
Definition at line 798 of file tpl_sgraph_test.cc.
| TEST | ( | DigraphWrapper | , |
| DigraphMoveAssignmentPreservesDirectedFlag | |||
| ) |
Definition at line 853 of file tpl_sgraph_test.cc.
| TEST | ( | DigraphWrapper | , |
| DigraphMovePreservesDirectedFlag | |||
| ) |
Definition at line 827 of file tpl_sgraph_test.cc.
| TEST | ( | DigraphWrapper | , |
| DigraphSelfAssignment | |||
| ) |
Definition at line 866 of file tpl_sgraph_test.cc.
| TEST | ( | DigraphWrapper | , |
| DirectedArcNotVisibleFromTarget | |||
| ) |
Definition at line 880 of file tpl_sgraph_test.cc.
| TEST | ( | GraphSarc | , |
| ConstructionWithEndpoints | |||
| ) |
Definition at line 149 of file tpl_sgraph_test.cc.
References GTArcCommon< ArcInfo >::get_info(), GTArcCommon< ArcInfo >::src_node, and GTArcCommon< ArcInfo >::tgt_node.
| TEST | ( | GraphSarc | , |
| ConstructionWithInfo | |||
| ) |
Definition at line 121 of file tpl_sgraph_test.cc.
References GTArcCommon< ArcInfo >::get_info().
| TEST | ( | GraphSarc | , |
| CopyAssignment | |||
| ) |
Definition at line 134 of file tpl_sgraph_test.cc.
References GTArcCommon< ArcInfo >::get_info().
| TEST | ( | GraphSarc | , |
| CopyConstruction | |||
| ) |
Definition at line 127 of file tpl_sgraph_test.cc.
References GTArcCommon< ArcInfo >::get_info().
| TEST | ( | GraphSarc | , |
| DefaultConstruction | |||
| ) |
Definition at line 115 of file tpl_sgraph_test.cc.
References GTArcCommon< ArcInfo >::get_info().
| TEST | ( | GraphSarc | , |
| SelfAssignment | |||
| ) |
Definition at line 142 of file tpl_sgraph_test.cc.
References GTArcCommon< ArcInfo >::get_info().
| TEST | ( | GraphSnode | , |
| ConstructionFromPointer | |||
| ) |
Definition at line 104 of file tpl_sgraph_test.cc.
References GTNodeCommon< NodeInfo >::get_info().
| TEST | ( | GraphSnode | , |
| ConstructionWithInfo | |||
| ) |
Definition at line 66 of file tpl_sgraph_test.cc.
References Aleph::Graph_Snode< Node_Info >::arc_list, GTNodeCommon< NodeInfo >::get_info(), Aleph::HTList::is_empty(), and GTNodeCommon< NodeInfo >::num_arcs.
| TEST | ( | GraphSnode | , |
| CopyAssignment | |||
| ) |
Definition at line 89 of file tpl_sgraph_test.cc.
References GTNodeCommon< NodeInfo >::get_info().
| TEST | ( | GraphSnode | , |
| CopyConstruction | |||
| ) |
Definition at line 74 of file tpl_sgraph_test.cc.
References GTNodeCommon< NodeInfo >::get_info(), and GTNodeCommon< NodeInfo >::num_arcs.
| TEST | ( | GraphSnode | , |
| DefaultConstruction | |||
| ) |
Definition at line 59 of file tpl_sgraph_test.cc.
References Aleph::Graph_Snode< Node_Info >::arc_list, Aleph::HTList::is_empty(), and GTNodeCommon< NodeInfo >::num_arcs.
| TEST | ( | GraphSnode | , |
| MoveConstruction | |||
| ) |
Definition at line 82 of file tpl_sgraph_test.cc.
References GTNodeCommon< NodeInfo >::get_info().
| TEST | ( | GraphSnode | , |
| SelfAssignment | |||
| ) |
Definition at line 97 of file tpl_sgraph_test.cc.
References GTNodeCommon< NodeInfo >::get_info().
| TEST | ( | ListSDigraph | , |
| BidirectionalArcs | |||
| ) |
Definition at line 284 of file tpl_sgraph_test.cc.
| TEST | ( | ListSDigraph | , |
| CopyAssignment | |||
| ) |
Definition at line 533 of file tpl_sgraph_test.cc.
| TEST | ( | ListSDigraph | , |
| CopyConstruction | |||
| ) |
Definition at line 507 of file tpl_sgraph_test.cc.
| TEST | ( | ListSDigraph | , |
| DirectedArcAsymmetry | |||
| ) |
Definition at line 271 of file tpl_sgraph_test.cc.
| TEST | ( | ListSDigraph | , |
| IsDirected | |||
| ) |
Definition at line 265 of file tpl_sgraph_test.cc.
| TEST | ( | ListSDigraph | , |
| LargeDigraph | |||
| ) |
Definition at line 585 of file tpl_sgraph_test.cc.
| TEST | ( | ListSDigraph | , |
| MoveAssignment | |||
| ) |
Definition at line 548 of file tpl_sgraph_test.cc.
| TEST | ( | ListSDigraph | , |
| MoveConstruction | |||
| ) |
Definition at line 521 of file tpl_sgraph_test.cc.
| TEST | ( | ListSDigraph | , |
| SelfLoop | |||
| ) |
Definition at line 620 of file tpl_sgraph_test.cc.
| TEST | ( | ListSGraph | , |
| ArcIterator | |||
| ) |
Definition at line 321 of file tpl_sgraph_test.cc.
References Aleph::count(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::sum().
| TEST | ( | ListSGraph | , |
| ArcIteratorCurrentArc | |||
| ) |
Definition at line 741 of file tpl_sgraph_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TEST | ( | ListSGraph | , |
| ArcIteratorGetEndpoints | |||
| ) |
Definition at line 426 of file tpl_sgraph_test.cc.
| TEST | ( | ListSGraph | , |
| ComplexOperations | |||
| ) |
Definition at line 758 of file tpl_sgraph_test.cc.
References GraphCommon< GT, Node, Arc >::esize(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::remove_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::remove_node(), and GraphCommon< GT, Node, Arc >::vsize().
| TEST | ( | ListSGraph | , |
| CopyAssignment | |||
| ) |
| TEST | ( | ListSGraph | , |
| CopyConstruction | |||
| ) |
| TEST | ( | ListSGraph | , |
| DefaultConstruction | |||
| ) |
Definition at line 162 of file tpl_sgraph_test.cc.
References GraphCommon< GT, Node, Arc >::esize(), GraphCommon< GT, Node, Arc >::is_digraph(), and GraphCommon< GT, Node, Arc >::vsize().
| TEST | ( | ListSGraph | , |
| EmptyGraphIterators | |||
| ) |
Definition at line 633 of file tpl_sgraph_test.cc.
| TEST | ( | ListSGraph | , |
| GetFirstArcNodeThrowsWhenEmpty | |||
| ) |
Definition at line 660 of file tpl_sgraph_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::get_first_arc(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TEST | ( | ListSGraph | , |
| GetFirstNodeArc | |||
| ) |
Definition at line 648 of file tpl_sgraph_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::get_first_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::get_first_node(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TEST | ( | ListSGraph | , |
| InsertArc | |||
| ) |
Definition at line 183 of file tpl_sgraph_test.cc.
References GraphCommon< GT, Node, Arc >::esize(), GraphCommon< GT, Node, Arc >::get_src_node(), GraphCommon< GT, Node, Arc >::get_tgt_node(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TEST | ( | ListSGraph | , |
| InsertNode | |||
| ) |
Definition at line 170 of file tpl_sgraph_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and GraphCommon< GT, Node, Arc >::vsize().
| TEST | ( | ListSGraph | , |
| IteratorsHandOutPointersByValue | |||
| ) |
Definition at line 346 of file tpl_sgraph_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::sum().
| TEST | ( | ListSGraph | , |
| LargeGraph | |||
| ) |
Definition at line 565 of file tpl_sgraph_test.cc.
References GraphCommon< GT, Node, Arc >::esize(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), N, nodes, and GraphCommon< GT, Node, Arc >::vsize().
| TEST | ( | ListSGraph | , |
| MoveAssignment | |||
| ) |
Definition at line 494 of file tpl_sgraph_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and GraphCommon< GT, Node, Arc >::vsize().
| TEST | ( | ListSGraph | , |
| MoveConstruction | |||
| ) |
Definition at line 457 of file tpl_sgraph_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and GraphCommon< GT, Node, Arc >::vsize().
| TEST | ( | ListSGraph | , |
| MultipleArcs | |||
| ) |
Definition at line 243 of file tpl_sgraph_test.cc.
References GraphCommon< GT, Node, Arc >::esize(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TEST | ( | ListSGraph | , |
| NodeArcIterator | |||
| ) |
Definition at line 380 of file tpl_sgraph_test.cc.
References Aleph::count(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::sum().
| TEST | ( | ListSGraph | , |
| NodeArcIteratorCurrentArc | |||
| ) |
Definition at line 728 of file tpl_sgraph_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TEST | ( | ListSGraph | , |
| NodeArcIteratorGetTgtNode | |||
| ) |
Definition at line 404 of file tpl_sgraph_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TEST | ( | ListSGraph | , |
| NodeIterator | |||
| ) |
Definition at line 302 of file tpl_sgraph_test.cc.
References Aleph::count(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::sum().
| TEST | ( | ListSGraph | , |
| NodeIteratorCurrentNode | |||
| ) |
Definition at line 717 of file tpl_sgraph_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TEST | ( | ListSGraph | , |
| RemoveAllNodes | |||
| ) |
Definition at line 668 of file tpl_sgraph_test.cc.
References GraphCommon< GT, Node, Arc >::esize(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::remove_node(), and GraphCommon< GT, Node, Arc >::vsize().
| TEST | ( | ListSGraph | , |
| RemoveArc | |||
| ) |
| TEST | ( | ListSGraph | , |
| RemoveNode | |||
| ) |
Definition at line 224 of file tpl_sgraph_test.cc.
References GraphCommon< GT, Node, Arc >::esize(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::remove_node(), and GraphCommon< GT, Node, Arc >::vsize().
| TEST | ( | ListSGraph | , |
| SelfAssignment | |||
| ) |
Definition at line 483 of file tpl_sgraph_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and GraphCommon< GT, Node, Arc >::vsize().
| TEST | ( | ListSGraph | , |
| SelfLoop | |||
| ) |
Definition at line 607 of file tpl_sgraph_test.cc.
References GraphCommon< GT, Node, Arc >::esize(), GraphCommon< GT, Node, Arc >::get_src_node(), GraphCommon< GT, Node, Arc >::get_tgt_node(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TEST | ( | ListSGraph | , |
| StringNodeInfo | |||
| ) |
Definition at line 701 of file tpl_sgraph_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TEST | ( | ListSGraph | , |
| SwapGraphs | |||
| ) |
Definition at line 682 of file tpl_sgraph_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::swap(), and GraphCommon< GT, Node, Arc >::vsize().
| TEST | ( | ListSGraph | , |
| UndirectedArcSymmetry | |||
| ) |
Definition at line 197 of file tpl_sgraph_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().