Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
tpl_sgraph_test.cc File Reference

Tests for Tpl Sgraph. More...

#include <gtest/gtest.h>
#include <tpl_sgraph.H>
#include <string>
#include <type_traits>
#include <utility>
#include <vector>
Include dependency graph for tpl_sgraph_test.cc:

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)
 

Detailed Description

Tests for Tpl Sgraph.

Definition in file tpl_sgraph_test.cc.

Function Documentation

◆ TEST() [1/60]

◆ TEST() [2/60]

TEST ( DigraphWrapper  ,
DigraphCopyAssignmentPreservesDirectedFlag   
)

Definition at line 839 of file tpl_sgraph_test.cc.

◆ TEST() [3/60]

TEST ( DigraphWrapper  ,
DigraphCopyPreservesDirectedFlag   
)

Definition at line 815 of file tpl_sgraph_test.cc.

◆ TEST() [4/60]

TEST ( DigraphWrapper  ,
DigraphInheritsFromBaseGraph   
)

Definition at line 798 of file tpl_sgraph_test.cc.

◆ TEST() [5/60]

TEST ( DigraphWrapper  ,
DigraphMoveAssignmentPreservesDirectedFlag   
)

Definition at line 853 of file tpl_sgraph_test.cc.

◆ TEST() [6/60]

TEST ( DigraphWrapper  ,
DigraphMovePreservesDirectedFlag   
)

Definition at line 827 of file tpl_sgraph_test.cc.

◆ TEST() [7/60]

TEST ( DigraphWrapper  ,
DigraphSelfAssignment   
)

Definition at line 866 of file tpl_sgraph_test.cc.

◆ TEST() [8/60]

TEST ( DigraphWrapper  ,
DirectedArcNotVisibleFromTarget   
)

Definition at line 880 of file tpl_sgraph_test.cc.

◆ TEST() [9/60]

TEST ( GraphSarc  ,
ConstructionWithEndpoints   
)

◆ TEST() [10/60]

TEST ( GraphSarc  ,
ConstructionWithInfo   
)

Definition at line 121 of file tpl_sgraph_test.cc.

References GTArcCommon< ArcInfo >::get_info().

◆ TEST() [11/60]

TEST ( GraphSarc  ,
CopyAssignment   
)

Definition at line 134 of file tpl_sgraph_test.cc.

References GTArcCommon< ArcInfo >::get_info().

◆ TEST() [12/60]

TEST ( GraphSarc  ,
CopyConstruction   
)

Definition at line 127 of file tpl_sgraph_test.cc.

References GTArcCommon< ArcInfo >::get_info().

◆ TEST() [13/60]

TEST ( GraphSarc  ,
DefaultConstruction   
)

Definition at line 115 of file tpl_sgraph_test.cc.

References GTArcCommon< ArcInfo >::get_info().

◆ TEST() [14/60]

TEST ( GraphSarc  ,
SelfAssignment   
)

Definition at line 142 of file tpl_sgraph_test.cc.

References GTArcCommon< ArcInfo >::get_info().

◆ TEST() [15/60]

TEST ( GraphSnode  ,
ConstructionFromPointer   
)

Definition at line 104 of file tpl_sgraph_test.cc.

References GTNodeCommon< NodeInfo >::get_info().

◆ TEST() [16/60]

TEST ( GraphSnode  ,
ConstructionWithInfo   
)

◆ TEST() [17/60]

TEST ( GraphSnode  ,
CopyAssignment   
)

Definition at line 89 of file tpl_sgraph_test.cc.

References GTNodeCommon< NodeInfo >::get_info().

◆ TEST() [18/60]

TEST ( GraphSnode  ,
CopyConstruction   
)

◆ TEST() [19/60]

TEST ( GraphSnode  ,
DefaultConstruction   
)

◆ TEST() [20/60]

TEST ( GraphSnode  ,
MoveConstruction   
)

Definition at line 82 of file tpl_sgraph_test.cc.

References GTNodeCommon< NodeInfo >::get_info().

◆ TEST() [21/60]

TEST ( GraphSnode  ,
SelfAssignment   
)

Definition at line 97 of file tpl_sgraph_test.cc.

References GTNodeCommon< NodeInfo >::get_info().

◆ TEST() [22/60]

TEST ( ListSDigraph  ,
BidirectionalArcs   
)

Definition at line 284 of file tpl_sgraph_test.cc.

◆ TEST() [23/60]

TEST ( ListSDigraph  ,
CopyAssignment   
)

Definition at line 533 of file tpl_sgraph_test.cc.

◆ TEST() [24/60]

TEST ( ListSDigraph  ,
CopyConstruction   
)

Definition at line 507 of file tpl_sgraph_test.cc.

◆ TEST() [25/60]

TEST ( ListSDigraph  ,
DirectedArcAsymmetry   
)

Definition at line 271 of file tpl_sgraph_test.cc.

◆ TEST() [26/60]

TEST ( ListSDigraph  ,
IsDirected   
)

Definition at line 265 of file tpl_sgraph_test.cc.

◆ TEST() [27/60]

TEST ( ListSDigraph  ,
LargeDigraph   
)

Definition at line 585 of file tpl_sgraph_test.cc.

References N, and nodes.

◆ TEST() [28/60]

TEST ( ListSDigraph  ,
MoveAssignment   
)

Definition at line 548 of file tpl_sgraph_test.cc.

◆ TEST() [29/60]

TEST ( ListSDigraph  ,
MoveConstruction   
)

Definition at line 521 of file tpl_sgraph_test.cc.

◆ TEST() [30/60]

TEST ( ListSDigraph  ,
SelfLoop   
)

Definition at line 620 of file tpl_sgraph_test.cc.

◆ TEST() [31/60]

◆ TEST() [32/60]

TEST ( ListSGraph  ,
ArcIteratorCurrentArc   
)

◆ TEST() [33/60]

TEST ( ListSGraph  ,
ArcIteratorGetEndpoints   
)

Definition at line 426 of file tpl_sgraph_test.cc.

◆ TEST() [34/60]

◆ TEST() [35/60]

◆ TEST() [36/60]

◆ TEST() [37/60]

TEST ( ListSGraph  ,
DefaultConstruction   
)

◆ TEST() [38/60]

TEST ( ListSGraph  ,
EmptyGraphIterators   
)

Definition at line 633 of file tpl_sgraph_test.cc.

◆ TEST() [39/60]

TEST ( ListSGraph  ,
GetFirstArcNodeThrowsWhenEmpty   
)

◆ TEST() [40/60]

◆ TEST() [41/60]

◆ TEST() [42/60]

TEST ( ListSGraph  ,
InsertNode   
)

◆ TEST() [43/60]

TEST ( ListSGraph  ,
IteratorsHandOutPointersByValue   
)

◆ TEST() [44/60]

◆ TEST() [45/60]

TEST ( ListSGraph  ,
MoveAssignment   
)

◆ TEST() [46/60]

TEST ( ListSGraph  ,
MoveConstruction   
)

◆ TEST() [47/60]

◆ TEST() [48/60]

◆ TEST() [49/60]

TEST ( ListSGraph  ,
NodeArcIteratorCurrentArc   
)

◆ TEST() [50/60]

TEST ( ListSGraph  ,
NodeArcIteratorGetTgtNode   
)

◆ TEST() [51/60]

TEST ( ListSGraph  ,
NodeIterator   
)

◆ TEST() [52/60]

TEST ( ListSGraph  ,
NodeIteratorCurrentNode   
)

◆ TEST() [53/60]

◆ TEST() [54/60]

◆ TEST() [55/60]

◆ TEST() [56/60]

TEST ( ListSGraph  ,
SelfAssignment   
)

◆ TEST() [57/60]

◆ TEST() [58/60]

TEST ( ListSGraph  ,
StringNodeInfo   
)

◆ TEST() [59/60]

◆ TEST() [60/60]

TEST ( ListSGraph  ,
UndirectedArcSymmetry   
)