Bitcoin ABC 0.30.5
P2P Digital Currency
Functions
write_name_tests.cpp File Reference
#include <seeder/dns.h>
#include <seeder/test/dns_util.h>
#include <string>
#include <vector>
#include <boost/test/unit_test.hpp>
Include dependency graph for write_name_tests.cpp:

Go to the source code of this file.

Functions

static void CheckWriteNameNoOffset (const std::string &qname)
 
static void CheckWriteNameWithOffset (const std::string &qname, const int &offset=12)
 
static void CheckWriteName (const std::string &qname, const int &offset=12)
 
static void CheckWriteNameError (const std::string &qname, const int &expectedError, const int &offset=-1, const size_t &writeBufferSize=MAX_QUERY_NAME_BUFFER_LENGTH)
 
 BOOST_AUTO_TEST_CASE (write_name_simple_tests)
 
 BOOST_AUTO_TEST_CASE (write_name_label_tests)
 
 BOOST_AUTO_TEST_CASE (write_name_qname_length_tests)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/3]

BOOST_AUTO_TEST_CASE ( write_name_label_tests  )

Definition at line 105 of file write_name_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/3]

BOOST_AUTO_TEST_CASE ( write_name_qname_length_tests  )

Definition at line 115 of file write_name_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/3]

BOOST_AUTO_TEST_CASE ( write_name_simple_tests  )

Definition at line 95 of file write_name_tests.cpp.

Here is the call graph for this function:

◆ CheckWriteName()

static void CheckWriteName ( const std::string &  qname,
const int &  offset = 12 
)
static

Definition at line 80 of file write_name_tests.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CheckWriteNameError()

static void CheckWriteNameError ( const std::string &  qname,
const int &  expectedError,
const int &  offset = -1,
const size_t &  writeBufferSize = MAX_QUERY_NAME_BUFFER_LENGTH 
)
static

Definition at line 85 of file write_name_tests.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CheckWriteNameNoOffset()

static void CheckWriteNameNoOffset ( const std::string &  qname)
static

Definition at line 15 of file write_name_tests.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CheckWriteNameWithOffset()

static void CheckWriteNameWithOffset ( const std::string &  qname,
const int &  offset = 12 
)
static

Definition at line 46 of file write_name_tests.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: