From cd0161f90b9e14f6ba10e1d754d9effbf508aceb Mon Sep 17 00:00:00 2001 From: Erik Frojdh Date: Tue, 7 Sep 2021 15:35:23 +0200 Subject: [PATCH] test initializing UdpDestination --- slsSupportLib/tests/test-network_utils.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/slsSupportLib/tests/test-network_utils.cpp b/slsSupportLib/tests/test-network_utils.cpp index 8bb1fe474..a6464d2b4 100644 --- a/slsSupportLib/tests/test-network_utils.cpp +++ b/slsSupportLib/tests/test-network_utils.cpp @@ -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); UdpDestination dst{}; + REQUIRE(dst.entry == 0); + REQUIRE(dst.port == 0); + REQUIRE(dst.port2 == 0); REQUIRE(dst.ip == 0); + REQUIRE(dst.ip2 == 0); + REQUIRE(dst.mac == 0); + REQUIRE(dst.mac2 == 0); + }