| 254 | } |
| 255 | |
| 256 | int32_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 | |
| 270 | int32_t testLengthAnnotationInStruct(const listStruct *s) |
| 271 | { |
no outgoing calls
no test coverage detected