MCPcopy Create free account
hub / github.com/EIPStackGroup/OpENer / TEST

Function TEST

source/tests/enet_encap/endianconvtest.cpp:26–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24};
25
26TEST(EndianConversion, GetSintFromMessage) {
27 const EipUint8 test_message[] = { 8 };
28 const EipUint8 *message_pointer = test_message;
29 const EipUint8 **const message = &message_pointer;
30 EipUint16 returned_value = GetSintFromMessage(message);
31
32 LONGS_EQUAL(8, returned_value);
33 POINTERS_EQUAL(test_message + 1, *message);
34}
35
36TEST(EndianConversion, GetIntFromMessage) {
37 const EipUint8 test_message[] = { 8, 60 };

Callers

nothing calls this directly

Calls 11

GetSintFromMessageFunction · 0.85
GetIntFromMessageFunction · 0.85
GetDintFromMessageFunction · 0.85
GetLintFromMessageFunction · 0.85
AddIntToMessageFunction · 0.85
AddDintToMessageFunction · 0.85
AddLintToMessageFunction · 0.85
DetermineEndianessFunction · 0.85
EncapsulateIpAddressFunction · 0.85
MoveMessageNOctetsFunction · 0.85

Tested by

no test coverage detected