Kea  1.9.9-git
textdata.h File Reference

Utilities for tests with text data. More...

#include <istream>
#include <string>
#include <sstream>
#include <gtest/gtest.h>
+ Include dependency graph for textdata.h:

Go to the source code of this file.

Namespaces

 isc
 Defines the logger used by the top-level component of kea-dhcp-ddns.
 
 isc::util
 
 isc::util::unittests
 

Functions

template<typename EXPECTED_STREAM , typename ACTUAL_STREAM >
void isc::util::unittests::matchTextData (EXPECTED_STREAM &expected, ACTUAL_STREAM &actual)
 Line-by-line text comparison. More...
 
template<typename EXPECTED_STREAM >
void isc::util::unittests::matchTextData (EXPECTED_STREAM &expected, const std::string &actual_text)
 Similar to the fully templated version, but takes string for the second (actual) data. More...
 
template<typename ACTUAL_STREAM >
void isc::util::unittests::matchTextData (const std::string &expected_text, ACTUAL_STREAM &actual)
 Same for the previous version, but the first argument is string. More...
 
void isc::util::unittests::matchTextData (const std::string &expected_text, const std::string &actual_text)
 Same for the previous two, but takes strings for both expected and actual data. More...
 

Detailed Description

Utilities for tests with text data.

This utility provides convenient helper functions for unit tests using textual data.

Definition in file textdata.h.