9#include "ns3/address.h"
31 :
TestCase(
"Address class implementation")
45 uint8_t bufferA[10]{1, 8, 0, 0, 0, 0, 0, 0, 0, 1};
46 uint8_t bufferB[10]{1, 8, 0, 0, 0, 0, 0, 0, 0, 2};
47 uint8_t bufferC[10]{1, 8, 0, 0, 0, 0, 0, 0, 0, 3};
58 std::map<Address, int8_t> theMap;
59 theMap.insert({addrC, 2});
60 theMap.insert({addrB, 1});
61 theMap.insert({addrA, 0});
64 for (
auto [k,
v] : theMap)
static AddressTestSuite g_addressTestSuite
Static variable for test initialization.
It tests LoraDeviceAddress comparison operators overrides and generation of new addresses with LoraDe...
void DoRun() override
Implementation to actually run this TestCase.
uint32_t CopyAllFrom(const uint8_t *buffer, uint8_t len)
void AddTestCase(TestCase *testCase, Duration duration=Duration::QUICK)
Add an individual child TestCase to this test suite.
TestSuite(std::string name, Type type=Type::UNIT)
Construct a new test suite.
#define NS_TEST_EXPECT_MSG_EQ(actual, limit, msg)
Test that an actual and expected (limit) value are equal and report if not.
Every class exported by the ns3 library is enclosed in the ns3 namespace.