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

Comprehensive unit tests for io_graph.H. More...

#include <gtest/gtest.h>
#include <sstream>
#include <cstdio>
#include <algorithm>
#include <filesystem>
#include <io_graph.H>
#include <tpl_graph.H>
#include <unistd.h>
Include dependency graph for io_graph_test.cc:

Go to the source code of this file.

Classes

class  IOGraphTest
 
class  IODigraphTest
 

Functions

 TEST_F (IOGraphTest, ConstructFromReference)
 
 TEST_F (IOGraphTest, ConstructFromPointer)
 
 TEST_F (IOGraphTest, VerboseMode)
 
 TEST_F (IOGraphTest, SaveAndLoadBinary)
 
 TEST_F (IOGraphTest, BinaryPreservesNodeData)
 
 TEST_F (IOGraphTest, BinaryPreservesArcData)
 
 TEST_F (IOGraphTest, SaveAndLoadText)
 
 TEST_F (IOGraphTest, TextPreservesNodeData)
 
 TEST_F (IOGraphTest, TextModeToStringStream)
 
 TEST_F (IOGraphTest, SaveAndLoadEmptyGraphBinary)
 
 TEST_F (IOGraphTest, SaveAndLoadEmptyGraphText)
 
 TEST_F (IOGraphTest, SaveAndLoadSingleNodeBinary)
 
 TEST_F (IODigraphTest, SaveAndLoadBinary)
 
 TEST_F (IODigraphTest, SaveAndLoadText)
 
 TEST (DftStoreNodeTest, TextMode)
 
 TEST (DftStoreArcTest, TextMode)
 
 TEST (DftLoadNodeTest, TextMode)
 
 TEST (DftLoadArcTest, TextMode)
 
 TEST_F (IOGraphTest, SetLoadNode)
 
 TEST_F (IOGraphTest, SetStoreNode)
 
 TEST_F (IOGraphTest, SetLoadArc)
 
 TEST_F (IOGraphTest, SetStoreArc)
 
 TEST_F (IOGraphTest, LoadFromBadFile)
 
 TEST_F (IOGraphTest, LoadTextFromBadFile)
 
 TEST_F (IOGraphTest, MultipleRoundTripsBinary)
 
 TEST_F (IOGraphTest, MultipleRoundTripsText)
 
int main (int argc, char **argv)
 

Detailed Description

Comprehensive unit tests for io_graph.H.

Definition in file io_graph_test.cc.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 687 of file io_graph_test.cc.

References Aleph::blossom_maximum_cardinality_matching().

◆ TEST() [1/4]

◆ TEST() [2/4]

TEST ( DftLoadNodeTest  ,
TextMode   
)

◆ TEST() [3/4]

◆ TEST() [4/4]

TEST ( DftStoreNodeTest  ,
TextMode   
)

◆ TEST_F() [1/22]

TEST_F ( IODigraphTest  ,
SaveAndLoadBinary   
)

Definition at line 446 of file io_graph_test.cc.

References Aleph::blossom_maximum_cardinality_matching(), and out.

◆ TEST_F() [2/22]

TEST_F ( IODigraphTest  ,
SaveAndLoadText   
)

Definition at line 469 of file io_graph_test.cc.

References Aleph::blossom_maximum_cardinality_matching(), and out.

◆ TEST_F() [3/22]

TEST_F ( IOGraphTest  ,
BinaryPreservesArcData   
)

Definition at line 227 of file io_graph_test.cc.

References Aleph::blossom_maximum_cardinality_matching(), and out.

◆ TEST_F() [4/22]

TEST_F ( IOGraphTest  ,
BinaryPreservesNodeData   
)

Definition at line 205 of file io_graph_test.cc.

References Aleph::blossom_maximum_cardinality_matching(), and out.

◆ TEST_F() [5/22]

TEST_F ( IOGraphTest  ,
ConstructFromPointer   
)

Definition at line 156 of file io_graph_test.cc.

References Aleph::blossom_maximum_cardinality_matching().

◆ TEST_F() [6/22]

TEST_F ( IOGraphTest  ,
ConstructFromReference   
)

Definition at line 150 of file io_graph_test.cc.

References Aleph::blossom_maximum_cardinality_matching().

◆ TEST_F() [7/22]

TEST_F ( IOGraphTest  ,
LoadFromBadFile   
)

Definition at line 596 of file io_graph_test.cc.

References Aleph::blossom_maximum_cardinality_matching().

◆ TEST_F() [8/22]

TEST_F ( IOGraphTest  ,
LoadTextFromBadFile   
)

Definition at line 607 of file io_graph_test.cc.

References Aleph::blossom_maximum_cardinality_matching().

◆ TEST_F() [9/22]

TEST_F ( IOGraphTest  ,
MultipleRoundTripsBinary   
)

Definition at line 621 of file io_graph_test.cc.

References Aleph::blossom_maximum_cardinality_matching(), and out.

◆ TEST_F() [10/22]

TEST_F ( IOGraphTest  ,
MultipleRoundTripsText   
)

Definition at line 662 of file io_graph_test.cc.

References Aleph::blossom_maximum_cardinality_matching(), and out.

◆ TEST_F() [11/22]

TEST_F ( IOGraphTest  ,
SaveAndLoadBinary   
)

Definition at line 179 of file io_graph_test.cc.

References Aleph::blossom_maximum_cardinality_matching(), and out.

◆ TEST_F() [12/22]

TEST_F ( IOGraphTest  ,
SaveAndLoadEmptyGraphBinary   
)

Definition at line 319 of file io_graph_test.cc.

References Aleph::blossom_maximum_cardinality_matching(), and out.

◆ TEST_F() [13/22]

TEST_F ( IOGraphTest  ,
SaveAndLoadEmptyGraphText   
)

Definition at line 343 of file io_graph_test.cc.

References Aleph::blossom_maximum_cardinality_matching(), and out.

◆ TEST_F() [14/22]

TEST_F ( IOGraphTest  ,
SaveAndLoadSingleNodeBinary   
)

◆ TEST_F() [15/22]

TEST_F ( IOGraphTest  ,
SaveAndLoadText   
)

Definition at line 253 of file io_graph_test.cc.

References Aleph::blossom_maximum_cardinality_matching(), and out.

◆ TEST_F() [16/22]

TEST_F ( IOGraphTest  ,
SetLoadArc   
)

Definition at line 576 of file io_graph_test.cc.

References Aleph::blossom_maximum_cardinality_matching().

◆ TEST_F() [17/22]

TEST_F ( IOGraphTest  ,
SetLoadNode   
)

Definition at line 560 of file io_graph_test.cc.

References Aleph::blossom_maximum_cardinality_matching().

◆ TEST_F() [18/22]

TEST_F ( IOGraphTest  ,
SetStoreArc   
)

Definition at line 584 of file io_graph_test.cc.

References Aleph::blossom_maximum_cardinality_matching().

◆ TEST_F() [19/22]

TEST_F ( IOGraphTest  ,
SetStoreNode   
)

Definition at line 568 of file io_graph_test.cc.

References Aleph::blossom_maximum_cardinality_matching().

◆ TEST_F() [20/22]

TEST_F ( IOGraphTest  ,
TextModeToStringStream   
)

Definition at line 301 of file io_graph_test.cc.

References Aleph::blossom_maximum_cardinality_matching(), and out.

◆ TEST_F() [21/22]

TEST_F ( IOGraphTest  ,
TextPreservesNodeData   
)

Definition at line 279 of file io_graph_test.cc.

References Aleph::blossom_maximum_cardinality_matching(), and out.

◆ TEST_F() [22/22]

TEST_F ( IOGraphTest  ,
VerboseMode   
)

Definition at line 162 of file io_graph_test.cc.

References Aleph::blossom_maximum_cardinality_matching().