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

Function testLengthAnnotation

test/test_lists/test_lists_server_impl.cpp:256–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254}
255
256int32_t testLengthAnnotation(const int32_t *myList, uint32_t len)
257{
258 const int32_t *itr = myList;
259 for (uint32_t i = 0; i < len; ++i)
260 {
261 if (*itr != (int32_t)(i + 1))
262 {
263 return 0;
264 }
265 ++itr;
266 }
267 return 1;
268}
269
270int32_t testLengthAnnotationInStruct(const listStruct *s)
271{

Callers 2

testLengthAnnotationMethod · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected