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

Function testClient

test/common/unit_test_tcp_arbitrator_server.cpp:212–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212int testClient()
213{
214 int number = 15;
215 for (int i = 0; i < number; i++)
216 {
217 secondSendInt(i + number);
218 }
219 for (int i = number - 1; i >= 0; i--)
220 {
221 if (i + number != secondReceiveInt())
222 {
223 return -1;
224 }
225 }
226 return 0;
227}

Callers 1

runClientFunction · 0.70

Calls 2

secondSendIntFunction · 0.85
secondReceiveIntFunction · 0.85

Tested by

no test coverage detected