MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / TEST

Function TEST

test/test_arrays/test_arrays_client_impl.cpp:24–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24TEST(test_arrays, sendReceivedInt32)
25{
26 uint32_t array_count = 12;
27 int32_t send_array[12];
28 int32_t(*received_array)[12];
29
30 for (uint32_t i = 0; i < array_count; ++i)
31 {
32 send_array[i] = (int32_t)i;
33 }
34
35 received_array = sendReceivedInt32(send_array);
36
37 for (uint32_t i = 0; i < array_count; ++i)
38 {
39 EXPECT_EQ(send_array[i], (*received_array)[i]);
40 }
41 erpc_free(received_array);
42}
43
44TEST(test_arrays, sendReceived2Int32)
45{

Callers

nothing calls this directly

Calls 15

sendReceivedInt32Function · 0.85
sendReceived2Int32Function · 0.85
sendReceivedStringFunction · 0.85
sendReceived2StringFunction · 0.85
sendReceivedEnumFunction · 0.85
sendReceived2EnumFunction · 0.85
sendReceivedInt32TypeFunction · 0.85
sendReceived2Int32TypeFunction · 0.85
sendReceivedStringTypeFunction · 0.85
sendReceived2StringTypeFunction · 0.85
sendReceivedEnumTypeFunction · 0.85
sendReceived2EnumTypeFunction · 0.85

Tested by

no test coverage detected