| 46 | } |
| 47 | |
| 48 | static const cbm_impact_hit_t *hit_of(const cbm_impact_walk_t *w, int64_t id) { |
| 49 | const cbm_impact_hit_t *hits = cbm_impact_walk_hits(w); |
| 50 | for (int i = 0; i < cbm_impact_walk_count(w); i++) { |
| 51 | if (hits[i].id == id) { |
| 52 | return &hits[i]; |
| 53 | } |
| 54 | } |
| 55 | return NULL; |
| 56 | } |
| 57 | |
| 58 | TEST(impact_walk_follows_a_chain_to_its_end) { |
| 59 | /* n30 calls n29 calls ... calls n0. No depth bound: a change to n0 reaches |
no test coverage detected