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

Tests for Load Digraph. More...

#include <gtest/gtest.h>
#include <sstream>
#include <string>
#include "load_digraph.H"
Include dependency graph for load_digraph_test.cc:

Go to the source code of this file.

Classes

struct  FlagReset
 

Functions

 TEST (LoadDigraph, LoadsNodesAndArcsAndSkipsShortRows)
 
 TEST (LoadDigraph, CreatesMissingNodesWhenParsingArcs)
 
 TEST (LoadDigraph, EmptyInputsProduceEmptyGraph)
 
 TEST (LoadDigraph, LinesWithExtraSeparatorsAreIgnored)
 
 TEST (GenerateDotFile, ProducesWarningWhenCycleExists)
 
 TEST (GenerateDotFile, EmitsTopologicalRanksWhenAcyclic)
 
 TEST (GenerateDotFile, RespectsOnlyNumFlagWhenTrue)
 
 TEST (Split, BasicSplitWithSingleSeparator)
 
 TEST (Split, SplitWithMultipleSeparators)
 
 TEST (Split, EmptyString)
 
 TEST (Split, OnlySeparators)
 
 TEST (Split, NoSeparatorsFound)
 
 TEST (Split, LeadingAndTrailingSeparators)
 
 TEST (EqualNode, ComparesById)
 
 TEST (LoadDigraph, ArcsWithCommaSeparator)
 
 TEST (LoadDigraph, DuplicateNodeIdsInArcs)
 
 TEST (LoadDigraph, MultipleArcsWithSameEndpoints)
 
 TEST (GenerateDotFile, AllColorsAndShapes)
 
 TEST (GenerateDotFile, SingleNodeGraph)
 
 TEST (GenerateDotFile, DisconnectedComponents)
 
 TEST (SearchNode, FindsExistingNode)
 
 TEST (SearchNode, CreatesNewNodeIfNotFound)
 
 TEST (MinNodeFields, HasCorrectValue)
 
 TEST (LoadDigraph, LargeGraph)
 

Detailed Description

Tests for Load Digraph.

Definition in file load_digraph_test.cc.

Function Documentation

◆ TEST() [1/24]

TEST ( EqualNode  ,
ComparesById   
)

Definition at line 302 of file load_digraph_test.cc.

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

◆ TEST() [2/24]

TEST ( GenerateDotFile  ,
AllColorsAndShapes   
)

◆ TEST() [3/24]

TEST ( GenerateDotFile  ,
DisconnectedComponents   
)

◆ TEST() [4/24]

TEST ( GenerateDotFile  ,
EmitsTopologicalRanksWhenAcyclic   
)

◆ TEST() [5/24]

TEST ( GenerateDotFile  ,
ProducesWarningWhenCycleExists   
)

◆ TEST() [6/24]

TEST ( GenerateDotFile  ,
RespectsOnlyNumFlagWhenTrue   
)

◆ TEST() [7/24]

TEST ( GenerateDotFile  ,
SingleNodeGraph   
)

◆ TEST() [8/24]

TEST ( LoadDigraph  ,
ArcsWithCommaSeparator   
)

Definition at line 317 of file load_digraph_test.cc.

References arcs, Aleph::load_digraph(), Aleph::maps(), and nodes.

◆ TEST() [9/24]

TEST ( LoadDigraph  ,
CreatesMissingNodesWhenParsingArcs   
)

◆ TEST() [10/24]

TEST ( LoadDigraph  ,
DuplicateNodeIdsInArcs   
)

◆ TEST() [11/24]

TEST ( LoadDigraph  ,
EmptyInputsProduceEmptyGraph   
)

Definition at line 131 of file load_digraph_test.cc.

References arcs, Aleph::load_digraph(), Aleph::maps(), and nodes.

◆ TEST() [12/24]

TEST ( LoadDigraph  ,
LargeGraph   
)

◆ TEST() [13/24]

TEST ( LoadDigraph  ,
LinesWithExtraSeparatorsAreIgnored   
)

◆ TEST() [14/24]

TEST ( LoadDigraph  ,
LoadsNodesAndArcsAndSkipsShortRows   
)

◆ TEST() [15/24]

TEST ( LoadDigraph  ,
MultipleArcsWithSameEndpoints   
)

Definition at line 356 of file load_digraph_test.cc.

References arcs, Aleph::load_digraph(), Aleph::maps(), and nodes.

◆ TEST() [16/24]

TEST ( MinNodeFields  ,
HasCorrectValue   
)

Definition at line 489 of file load_digraph_test.cc.

References Aleph::maps(), and Aleph::MIN_NODE_FIELDS.

◆ TEST() [17/24]

TEST ( SearchNode  ,
CreatesNewNodeIfNotFound   
)

◆ TEST() [18/24]

TEST ( SearchNode  ,
FindsExistingNode   
)

Definition at line 465 of file load_digraph_test.cc.

References Aleph::maps(), and Aleph::search_node().

◆ TEST() [19/24]

TEST ( Split  ,
BasicSplitWithSingleSeparator   
)

Definition at line 250 of file load_digraph_test.cc.

References Aleph::maps(), Aleph::DynDlist< T >::size(), and Aleph::split().

◆ TEST() [20/24]

TEST ( Split  ,
EmptyString   
)

Definition at line 271 of file load_digraph_test.cc.

References Aleph::maps(), Aleph::DynDlist< T >::size(), and Aleph::split().

◆ TEST() [21/24]

TEST ( Split  ,
LeadingAndTrailingSeparators   
)

Definition at line 293 of file load_digraph_test.cc.

References Aleph::maps(), Aleph::DynDlist< T >::size(), and Aleph::split().

◆ TEST() [22/24]

TEST ( Split  ,
NoSeparatorsFound   
)

Definition at line 285 of file load_digraph_test.cc.

References Aleph::maps(), Aleph::DynDlist< T >::size(), and Aleph::split().

◆ TEST() [23/24]

TEST ( Split  ,
OnlySeparators   
)

Definition at line 278 of file load_digraph_test.cc.

References Aleph::maps(), Aleph::DynDlist< T >::size(), and Aleph::split().

◆ TEST() [24/24]

TEST ( Split  ,
SplitWithMultipleSeparators   
)

Definition at line 260 of file load_digraph_test.cc.

References Aleph::maps(), Aleph::DynDlist< T >::size(), and Aleph::split().