Aleph-w 3.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 <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, 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/59]

◆ TEST() [2/59]

TEST ( DigraphWrapper  ,
DigraphCopyAssignmentPreservesDirectedFlag   
)

Definition at line 800 of file tpl_sgraph_test.cc.

References Aleph::maps().

◆ TEST() [3/59]

TEST ( DigraphWrapper  ,
DigraphCopyPreservesDirectedFlag   
)

Definition at line 776 of file tpl_sgraph_test.cc.

References Aleph::maps().

◆ TEST() [4/59]

TEST ( DigraphWrapper  ,
DigraphInheritsFromBaseGraph   
)

Definition at line 759 of file tpl_sgraph_test.cc.

References Aleph::maps().

◆ TEST() [5/59]

TEST ( DigraphWrapper  ,
DigraphMoveAssignmentPreservesDirectedFlag   
)

Definition at line 814 of file tpl_sgraph_test.cc.

References Aleph::maps().

◆ TEST() [6/59]

TEST ( DigraphWrapper  ,
DigraphMovePreservesDirectedFlag   
)

Definition at line 788 of file tpl_sgraph_test.cc.

References Aleph::maps().

◆ TEST() [7/59]

TEST ( DigraphWrapper  ,
DigraphSelfAssignment   
)

Definition at line 827 of file tpl_sgraph_test.cc.

References Aleph::maps().

◆ TEST() [8/59]

TEST ( DigraphWrapper  ,
DirectedArcNotVisibleFromTarget   
)

Definition at line 841 of file tpl_sgraph_test.cc.

References Aleph::maps().

◆ TEST() [9/59]

TEST ( GraphSarc  ,
ConstructionWithEndpoints   
)

◆ TEST() [10/59]

TEST ( GraphSarc  ,
ConstructionWithInfo   
)

Definition at line 119 of file tpl_sgraph_test.cc.

References GTArcCommon< ArcInfo >::get_info(), and Aleph::maps().

◆ TEST() [11/59]

TEST ( GraphSarc  ,
CopyAssignment   
)

Definition at line 132 of file tpl_sgraph_test.cc.

References GTArcCommon< ArcInfo >::get_info(), and Aleph::maps().

◆ TEST() [12/59]

TEST ( GraphSarc  ,
CopyConstruction   
)

Definition at line 125 of file tpl_sgraph_test.cc.

References GTArcCommon< ArcInfo >::get_info(), and Aleph::maps().

◆ TEST() [13/59]

TEST ( GraphSarc  ,
DefaultConstruction   
)

Definition at line 113 of file tpl_sgraph_test.cc.

References GTArcCommon< ArcInfo >::get_info(), and Aleph::maps().

◆ TEST() [14/59]

TEST ( GraphSarc  ,
SelfAssignment   
)

Definition at line 140 of file tpl_sgraph_test.cc.

References GTArcCommon< ArcInfo >::get_info(), and Aleph::maps().

◆ TEST() [15/59]

TEST ( GraphSnode  ,
ConstructionFromPointer   
)

Definition at line 102 of file tpl_sgraph_test.cc.

References Aleph::maps().

◆ TEST() [16/59]

◆ TEST() [17/59]

TEST ( GraphSnode  ,
CopyAssignment   
)

Definition at line 87 of file tpl_sgraph_test.cc.

References Aleph::maps().

◆ TEST() [18/59]

TEST ( GraphSnode  ,
CopyConstruction   
)

Definition at line 72 of file tpl_sgraph_test.cc.

References Aleph::maps().

◆ TEST() [19/59]

TEST ( GraphSnode  ,
DefaultConstruction   
)

◆ TEST() [20/59]

TEST ( GraphSnode  ,
MoveConstruction   
)

Definition at line 80 of file tpl_sgraph_test.cc.

References Aleph::maps().

◆ TEST() [21/59]

TEST ( GraphSnode  ,
SelfAssignment   
)

Definition at line 95 of file tpl_sgraph_test.cc.

References GTNodeCommon< NodeInfo >::get_info(), and Aleph::maps().

◆ TEST() [22/59]

TEST ( ListSDigraph  ,
BidirectionalArcs   
)

Definition at line 282 of file tpl_sgraph_test.cc.

References Aleph::maps().

◆ TEST() [23/59]

TEST ( ListSDigraph  ,
CopyAssignment   
)

Definition at line 494 of file tpl_sgraph_test.cc.

References Aleph::maps().

◆ TEST() [24/59]

TEST ( ListSDigraph  ,
CopyConstruction   
)

Definition at line 468 of file tpl_sgraph_test.cc.

References Aleph::maps().

◆ TEST() [25/59]

TEST ( ListSDigraph  ,
DirectedArcAsymmetry   
)

Definition at line 269 of file tpl_sgraph_test.cc.

References Aleph::maps().

◆ TEST() [26/59]

TEST ( ListSDigraph  ,
IsDirected   
)

Definition at line 263 of file tpl_sgraph_test.cc.

References Aleph::maps().

◆ TEST() [27/59]

TEST ( ListSDigraph  ,
LargeDigraph   
)

Definition at line 546 of file tpl_sgraph_test.cc.

References Aleph::maps(), N, and nodes.

◆ TEST() [28/59]

TEST ( ListSDigraph  ,
MoveAssignment   
)

Definition at line 509 of file tpl_sgraph_test.cc.

References Aleph::maps().

◆ TEST() [29/59]

TEST ( ListSDigraph  ,
MoveConstruction   
)

Definition at line 482 of file tpl_sgraph_test.cc.

References Aleph::maps().

◆ TEST() [30/59]

TEST ( ListSDigraph  ,
SelfLoop   
)

Definition at line 581 of file tpl_sgraph_test.cc.

References Aleph::maps().

◆ TEST() [31/59]

◆ TEST() [32/59]

TEST ( ListSGraph  ,
ArcIteratorCurrentArc   
)

◆ TEST() [33/59]

TEST ( ListSGraph  ,
ArcIteratorGetEndpoints   
)

Definition at line 387 of file tpl_sgraph_test.cc.

References Aleph::maps().

◆ TEST() [34/59]

◆ TEST() [35/59]

TEST ( ListSGraph  ,
CopyAssignment   
)

Definition at line 430 of file tpl_sgraph_test.cc.

References Aleph::maps().

◆ TEST() [36/59]

TEST ( ListSGraph  ,
CopyConstruction   
)

Definition at line 405 of file tpl_sgraph_test.cc.

References Aleph::maps().

◆ TEST() [37/59]

TEST ( ListSGraph  ,
DefaultConstruction   
)

◆ TEST() [38/59]

TEST ( ListSGraph  ,
EmptyGraphIterators   
)

Definition at line 594 of file tpl_sgraph_test.cc.

References Aleph::maps().

◆ TEST() [39/59]

TEST ( ListSGraph  ,
GetFirstArcNodeThrowsWhenEmpty   
)

◆ TEST() [40/59]

◆ TEST() [41/59]

◆ TEST() [42/59]

TEST ( ListSGraph  ,
InsertNode   
)

◆ TEST() [43/59]

◆ TEST() [44/59]

TEST ( ListSGraph  ,
MoveAssignment   
)

Definition at line 455 of file tpl_sgraph_test.cc.

References Aleph::maps().

◆ TEST() [45/59]

TEST ( ListSGraph  ,
MoveConstruction   
)

Definition at line 418 of file tpl_sgraph_test.cc.

References Aleph::maps().

◆ TEST() [46/59]

◆ TEST() [47/59]

◆ TEST() [48/59]

TEST ( ListSGraph  ,
NodeArcIteratorCurrentArc   
)

◆ TEST() [49/59]

◆ TEST() [50/59]

TEST ( ListSGraph  ,
NodeIterator   
)

◆ TEST() [51/59]

TEST ( ListSGraph  ,
NodeIteratorCurrentNode   
)

◆ TEST() [52/59]

◆ TEST() [53/59]

◆ TEST() [54/59]

◆ TEST() [55/59]

TEST ( ListSGraph  ,
SelfAssignment   
)

◆ TEST() [56/59]

◆ TEST() [57/59]

◆ TEST() [58/59]

TEST ( ListSGraph  ,
SwapGraphs   
)

Definition at line 643 of file tpl_sgraph_test.cc.

References Aleph::maps(), and Aleph::DynList< T >::swap().

◆ TEST() [59/59]

TEST ( ListSGraph  ,
UndirectedArcSymmetry   
)