mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-06 01:50:40 +02:00
test initializing UdpDestination
This commit is contained in:
parent
ba52bfb65e
commit
cd0161f90b
@ -113,10 +113,17 @@ TEST_CASE("Copy construct a MacAddr") {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
TEST_CASE("udp dst struct"){
|
TEST_CASE("udp dst struct basic properties"){
|
||||||
static_assert(sizeof(UdpDestination) == 36);
|
static_assert(sizeof(UdpDestination) == 36);
|
||||||
UdpDestination dst{};
|
UdpDestination dst{};
|
||||||
|
REQUIRE(dst.entry == 0);
|
||||||
|
REQUIRE(dst.port == 0);
|
||||||
|
REQUIRE(dst.port2 == 0);
|
||||||
REQUIRE(dst.ip == 0);
|
REQUIRE(dst.ip == 0);
|
||||||
|
REQUIRE(dst.ip2 == 0);
|
||||||
|
REQUIRE(dst.mac == 0);
|
||||||
|
REQUIRE(dst.mac2 == 0);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user