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

Tests for xml_graph.H (built only when libxml++ 2.6 is available). More...

#include <gtest/gtest.h>
#include <cstdio>
#include <filesystem>
#include <random>
#include <stdexcept>
#include <string>
#include <ahSort.H>
#include <xml_graph.H>
Include dependency graph for xml_graph_test.cc:

Go to the source code of this file.

Concepts

concept  @1180::can_xml_graph
 

Functions

 TEST_F (XmlGraphTest, RoundTripWithOwnedFunctors)
 
 TEST_F (XmlGraphTest, SharedFunctorsStaySharedAcrossCopies)
 
 TEST_F (XmlGraphTest, CopyOfOwnerOutlivesTheOriginal)
 
 TEST_F (XmlGraphTest, CopyOfSharedNonCopyableFunctorWorks)
 
 TEST_F (XmlGraphTest, CopyOfOwnedNonCopyableFunctorThrows)
 
 TEST_F (XmlGraphTest, CustomElementNamesRoundTrip)
 

Detailed Description

Tests for xml_graph.H (built only when libxml++ 2.6 is available).

Definition in file xml_graph_test.cc.

Function Documentation

◆ TEST_F() [1/6]

TEST_F ( XmlGraphTest  ,
CopyOfOwnedNonCopyableFunctorThrows   
)

Definition at line 257 of file xml_graph_test.cc.

◆ TEST_F() [2/6]

TEST_F ( XmlGraphTest  ,
CopyOfOwnerOutlivesTheOriginal   
)

Definition at line 200 of file xml_graph_test.cc.

References Aleph::copy(), file, and h.

◆ TEST_F() [3/6]

TEST_F ( XmlGraphTest  ,
CopyOfSharedNonCopyableFunctorWorks   
)

Definition at line 238 of file xml_graph_test.cc.

References Aleph::copy(), and file.

◆ TEST_F() [4/6]

TEST_F ( XmlGraphTest  ,
CustomElementNamesRoundTrip   
)

Definition at line 266 of file xml_graph_test.cc.

References file, GraphCommon< GT, Node, Arc >::get_num_nodes(), and h.

◆ TEST_F() [5/6]

TEST_F ( XmlGraphTest  ,
RoundTripWithOwnedFunctors   
)

◆ TEST_F() [6/6]

TEST_F ( XmlGraphTest  ,
SharedFunctorsStaySharedAcrossCopies   
)

Definition at line 181 of file xml_graph_test.cc.

References Aleph::copy(), file, and h.