|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Tests for Tpl Agraph. More...
#include <gtest/gtest.h>#include <tpl_agraph.H>#include <random>#include <string>#include <utility>#include <vector>Go to the source code of this file.
Functions | |
| TEST (GraphAnode, DefaultConstruction) | |
| TEST (GraphAnode, ConstructionWithInfo) | |
| TEST (GraphAnode, CopyConstruction) | |
| TEST (GraphAnode, MoveConstruction) | |
| TEST (GraphAarc, DefaultConstruction) | |
| TEST (GraphAarc, ConstructionWithInfo) | |
| TEST (GraphAarc, CopyConstruction) | |
| TEST (ArrayGraph, DefaultConstruction) | |
| TEST (ArrayGraph, InsertNode) | |
| TEST (ArrayGraph, InsertArc) | |
| TEST (ArrayGraph, UndirectedArcSymmetry) | |
| TEST (ArrayGraph, RemoveArc) | |
| TEST (ArrayGraph, RemoveNode) | |
| TEST (ArrayGraph, MultipleArcs) | |
| TEST (ArrayDigraph, IsDirected) | |
| TEST (ArrayDigraph, DirectedArcAsymmetry) | |
| TEST (ArrayDigraph, BidirectionalArcs) | |
| TEST (ArrayGraph, NodeIterator) | |
| TEST (ArrayGraph, ArcIterator) | |
| TEST (ArrayGraph, NodeArcIterator) | |
| TEST (ArrayGraph, NodeArcIteratorDoesWhatTheArrayIteratorDid) | |
| TEST (ArrayGraph, FilteredNodeArcIteratorGoesBothWays) | |
| TEST (ArrayGraph, CopyConstruction) | |
| TEST (ArrayGraph, MoveConstruction) | |
| TEST (ArrayGraph, CopyAssignment) | |
| TEST (ArrayGraph, MoveAssignment) | |
| TEST (ArrayGraph, SelfAssignment) | |
| TEST (ArrayGraph, DeepCopyVerification) | |
| TEST (ArrayGraph, CopyToNonEmptyGraph) | |
| TEST (ArrayGraph, SortNodes) | |
| TEST (ArrayGraph, SortArcs) | |
| TEST (ArrayGraph, LargeGraph) | |
| TEST (ArrayDigraph, LargeDigraph) | |
| TEST (ArrayGraph, SelfLoop) | |
| TEST (ArrayGraph, DisconnectReconnectArc) | |
| TEST (ArrayGraph, EmptyGraphIterators) | |
| TEST (ArrayGraph, GetFirstNodeArc) | |
| TEST (ArrayGraph, GetFirstNodeArcOfAnEmptyGraphThrows) | |
| TEST (ArrayGraph, CompressesNodesWithoutArcs) | |
| TEST (ArrayGraph, RemovingEveryArcOfANodeAndInsertingAgain) | |
| TEST (ArrayGraph, StringNodeInfo) | |
| TEST (DigraphWrapper, ArrayDigraphInheritsFromBaseGraph) | |
| TEST (DigraphWrapper, ArrayDigraphCopyPreservesDirectedFlag) | |
| TEST (DigraphWrapper, ArrayDigraphMovePreservesDirectedFlag) | |
| TEST (DigraphWrapper, ArrayDigraphAssignmentPreservesDirectedFlag) | |
| TEST (DigraphWrapper, ArrayDigraphMoveAssignment) | |
| TEST (ConceptsTest, ArrayGraphIteratorsSatisfyConcepts) | |
Tests for Tpl Agraph.
Definition in file tpl_agraph_test.cc.
| TEST | ( | ArrayDigraph | , |
| BidirectionalArcs | |||
| ) |
Definition at line 239 of file tpl_agraph_test.cc.
| TEST | ( | ArrayDigraph | , |
| DirectedArcAsymmetry | |||
| ) |
Definition at line 226 of file tpl_agraph_test.cc.
| TEST | ( | ArrayDigraph | , |
| IsDirected | |||
| ) |
Definition at line 220 of file tpl_agraph_test.cc.
| TEST | ( | ArrayDigraph | , |
| LargeDigraph | |||
| ) |
Definition at line 649 of file tpl_agraph_test.cc.
| TEST | ( | ArrayGraph | , |
| ArcIterator | |||
| ) |
Definition at line 276 of file tpl_agraph_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 | ( | ArrayGraph | , |
| CompressesNodesWithoutArcs | |||
| ) |
| TEST | ( | ArrayGraph | , |
| CopyAssignment | |||
| ) |
| TEST | ( | ArrayGraph | , |
| CopyConstruction | |||
| ) |
| TEST | ( | ArrayGraph | , |
| CopyToNonEmptyGraph | |||
| ) |
| TEST | ( | ArrayGraph | , |
| DeepCopyVerification | |||
| ) |
| TEST | ( | ArrayGraph | , |
| DefaultConstruction | |||
| ) |
Definition at line 117 of file tpl_agraph_test.cc.
References GraphCommon< GT, Node, Arc >::esize(), GraphCommon< GT, Node, Arc >::is_digraph(), and GraphCommon< GT, Node, Arc >::vsize().
| TEST | ( | ArrayGraph | , |
| DisconnectReconnectArc | |||
| ) |
Definition at line 684 of file tpl_agraph_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::connect_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::disconnect_arc(), GraphCommon< GT, Node, Arc >::esize(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::remove_arc().
| TEST | ( | ArrayGraph | , |
| EmptyGraphIterators | |||
| ) |
Definition at line 705 of file tpl_agraph_test.cc.
| TEST | ( | ArrayGraph | , |
| FilteredNodeArcIteratorGoesBothWays | |||
| ) |
Definition at line 445 of file tpl_agraph_test.cc.
References GTArcCommon< ArcInfo >::get_info(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), k, Aleph::Filter_Iterator< Container, It, Show_Item >::next(), Aleph::Filter_Iterator< Container, It, Show_Item >::prev(), and Aleph::Filter_Iterator< Container, It, Show_Item >::reset_last().
| TEST | ( | ArrayGraph | , |
| GetFirstNodeArc | |||
| ) |
Definition at line 720 of file tpl_agraph_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 | ( | ArrayGraph | , |
| GetFirstNodeArcOfAnEmptyGraphThrows | |||
| ) |
| TEST | ( | ArrayGraph | , |
| InsertArc | |||
| ) |
Definition at line 138 of file tpl_agraph_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 | ( | ArrayGraph | , |
| InsertNode | |||
| ) |
Definition at line 125 of file tpl_agraph_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and GraphCommon< GT, Node, Arc >::vsize().
| TEST | ( | ArrayGraph | , |
| LargeGraph | |||
| ) |
Definition at line 629 of file tpl_agraph_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 | ( | ArrayGraph | , |
| MoveAssignment | |||
| ) |
Definition at line 514 of file tpl_agraph_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and GraphCommon< GT, Node, Arc >::vsize().
| TEST | ( | ArrayGraph | , |
| MoveConstruction | |||
| ) |
Definition at line 488 of file tpl_agraph_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and GraphCommon< GT, Node, Arc >::vsize().
| TEST | ( | ArrayGraph | , |
| MultipleArcs | |||
| ) |
Definition at line 198 of file tpl_agraph_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 | ( | ArrayGraph | , |
| NodeArcIterator | |||
| ) |
Definition at line 298 of file tpl_agraph_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 | ( | ArrayGraph | , |
| NodeArcIteratorDoesWhatTheArrayIteratorDid | |||
| ) |
Definition at line 325 of file tpl_agraph_test.cc.
References Aleph::Array_Iterator< T >::end(), GraphCommon< GT, Node, Arc >::get_connected_node(), Aleph::Array_Iterator< T >::get_curr_ne(), GTArcCommon< ArcInfo >::get_info(), Aleph::Array_Iterator< T >::get_pos(), Aleph::Array_Iterator< T >::has_curr(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), Aleph::Array_Iterator< T >::is_last(), k, Aleph::Array_Iterator< T >::next(), Aleph::Array_Iterator< T >::next_ne(), no_exception_ctor, Aleph::Array_Iterator< T >::prev(), Aleph::Array_Iterator< T >::prev_ne(), Aleph::Array_Iterator< T >::reset(), Aleph::Array_Iterator< T >::reset_first(), Aleph::Array_Iterator< T >::reset_last(), and Aleph::Array_Iterator< T >::set_pos().
| TEST | ( | ArrayGraph | , |
| NodeIterator | |||
| ) |
Definition at line 257 of file tpl_agraph_test.cc.
References Aleph::count(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and Aleph::sum().
| TEST | ( | ArrayGraph | , |
| RemoveArc | |||
| ) |
| TEST | ( | ArrayGraph | , |
| RemoveNode | |||
| ) |
Definition at line 179 of file tpl_agraph_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 | ( | ArrayGraph | , |
| RemovingEveryArcOfANodeAndInsertingAgain | |||
| ) |
Definition at line 769 of file tpl_agraph_test.cc.
References arcs.
| TEST | ( | ArrayGraph | , |
| SelfAssignment | |||
| ) |
| TEST | ( | ArrayGraph | , |
| SelfLoop | |||
| ) |
Definition at line 671 of file tpl_agraph_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 | ( | ArrayGraph | , |
| SortArcs | |||
| ) |
Definition at line 604 of file tpl_agraph_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and GraphCommon< GT, Node, Arc >::sort_arcs().
| TEST | ( | ArrayGraph | , |
| SortNodes | |||
| ) |
Definition at line 586 of file tpl_agraph_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and GraphCommon< GT, Node, Arc >::sort_nodes().
| TEST | ( | ArrayGraph | , |
| StringNodeInfo | |||
| ) |
Definition at line 791 of file tpl_agraph_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TEST | ( | ArrayGraph | , |
| UndirectedArcSymmetry | |||
| ) |
Definition at line 152 of file tpl_agraph_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), and Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node().
| TEST | ( | ConceptsTest | , |
| ArrayGraphIteratorsSatisfyConcepts | |||
| ) |
| TEST | ( | DigraphWrapper | , |
| ArrayDigraphAssignmentPreservesDirectedFlag | |||
| ) |
Definition at line 847 of file tpl_agraph_test.cc.
| TEST | ( | DigraphWrapper | , |
| ArrayDigraphCopyPreservesDirectedFlag | |||
| ) |
Definition at line 825 of file tpl_agraph_test.cc.
| TEST | ( | DigraphWrapper | , |
| ArrayDigraphInheritsFromBaseGraph | |||
| ) |
Definition at line 810 of file tpl_agraph_test.cc.
| TEST | ( | DigraphWrapper | , |
| ArrayDigraphMoveAssignment | |||
| ) |
Definition at line 860 of file tpl_agraph_test.cc.
| TEST | ( | DigraphWrapper | , |
| ArrayDigraphMovePreservesDirectedFlag | |||
| ) |
Definition at line 836 of file tpl_agraph_test.cc.
| TEST | ( | GraphAarc | , |
| ConstructionWithInfo | |||
| ) |
Definition at line 100 of file tpl_agraph_test.cc.
References GTArcCommon< ArcInfo >::get_info().
| TEST | ( | GraphAarc | , |
| CopyConstruction | |||
| ) |
Definition at line 106 of file tpl_agraph_test.cc.
References GTArcCommon< ArcInfo >::get_info().
| TEST | ( | GraphAarc | , |
| DefaultConstruction | |||
| ) |
Definition at line 94 of file tpl_agraph_test.cc.
References GTArcCommon< ArcInfo >::get_info().
| TEST | ( | GraphAnode | , |
| ConstructionWithInfo | |||
| ) |
Definition at line 67 of file tpl_agraph_test.cc.
References Aleph::Graph_Anode< Node_Info >::arcs_dim, GTNodeCommon< NodeInfo >::get_info(), and GTNodeCommon< NodeInfo >::num_arcs.
| TEST | ( | GraphAnode | , |
| CopyConstruction | |||
| ) |
Definition at line 75 of file tpl_agraph_test.cc.
References GTNodeCommon< NodeInfo >::get_info(), and GTNodeCommon< NodeInfo >::num_arcs.
| TEST | ( | GraphAnode | , |
| DefaultConstruction | |||
| ) |
Definition at line 59 of file tpl_agraph_test.cc.
References Aleph::Graph_Anode< Node_Info >::arc_array, Aleph::Graph_Anode< Node_Info >::arcs_dim, and GTNodeCommon< NodeInfo >::num_arcs.
| TEST | ( | GraphAnode | , |
| MoveConstruction | |||
| ) |
Definition at line 83 of file tpl_agraph_test.cc.
References GTNodeCommon< NodeInfo >::get_info().