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

Function testClient

test/common/unit_test_arbitrator_app1.cpp:240–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240int testClient()
241{
242 int number = 15;
243 for (int i = 0; i < number; i++)
244 {
245 secondSendInt(i + number);
246 }
247 for (int i = number - 1; i >= 0; i--)
248 {
249 if (i + number != secondReceiveInt())
250 {
251 return -1;
252 }
253 }
254 return 0;
255}

Callers 1

runClientFunction · 0.70

Calls 2

secondSendIntFunction · 0.85
secondReceiveIntFunction · 0.85

Tested by

no test coverage detected