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

Function testLengthAnnotationInStruct

test/test_lists/test_lists_server_impl.cpp:270–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268}
269
270int32_t testLengthAnnotationInStruct(const listStruct *s)
271{
272 for (uint32_t i = 0; i < s->len; ++i)
273 {
274 if ((int32_t)(i + 1) != s->myList[i])
275 {
276 return 0;
277 }
278 }
279 return 10;
280}
281
282listStruct *returnSentStructLengthAnnotation(const listStruct *s)
283{

Callers 2

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected