A Discrete-Event Network Simulator
API

Hash test suite. More...

#include <iomanip>
#include <string>
#include "ns3/test.h"
#include "ns3/hash.h"
+ Include dependency graph for hash-test-suite.cc:

Go to the source code of this file.

Classes

class  ns3::tests::DefaultHashTestCase
 Test default hash on fixed string. More...
 
class  ns3::tests::Fnv1aTestCase
 FNV hash on fixed string. More...
 
class  ns3::tests::Hash32FunctionPtrTestCase
 Test 32-bit function pointer. More...
 
class  ns3::tests::Hash64FunctionPtrTestCase
 Test 64-bit function pointer. More...
 
class  ns3::tests::HashTestCase
 Base class for hash tests. More...
 
class  ns3::tests::HashTestSuite
 Hash functions test suite. More...
 
class  ns3::tests::IncrementalTestCase
 Test incremental hashing. More...
 
class  ns3::tests::Murmur3TestCase
 Test Murmur3 hash on fixed string. More...
 

Namespaces

 ns3
 Every class exported by the ns3 library is enclosed in the ns3 namespace.
 
 ns3::tests
 Namespace for test files, TestCases and TestSuites.
 

Functions

uint16_t ns3::tests::gnu_sum (const char *buffer, const std::size_t size)
 Simple hash function based on the GNU sum program. More...
 
uint32_t ns3::tests::gnu_sum32 (const char *buffer, const std::size_t size)
 A 32-bit hash function, based on gnu_sum(). More...
 
uint64_t ns3::tests::gnu_sum64 (const char *buffer, const std::size_t size)
 A 64-bit hash function, base on gnu_sum(). More...
 

Variables

static HashTestSuite ns3::tests::g_hashTestSuite
 HashTestSuite instance variable. More...
 

Detailed Description

Hash test suite.

Definition in file hash-test-suite.cc.