Kea 2.7.5
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

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

Functions

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.
 
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.
 
template<typename EXPECTED_STREAM , typename ACTUAL_STREAM >
void isc::util::unittests::matchTextData (EXPECTED_STREAM &expected, ACTUAL_STREAM &actual)
 Line-by-line text comparison.
 
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.
 

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.