| 278 | } |
| 279 | |
| 280 | Test::TestGroup* Test::TestGroup::getNextLeaf(TestGroup* current) |
| 281 | { |
| 282 | PX_ASSERT(current); |
| 283 | |
| 284 | if (current == this) |
| 285 | return NULL; |
| 286 | |
| 287 | TestGroup* parent = current->getParent(); |
| 288 | if (!parent) |
| 289 | return NULL; |
| 290 | |
| 291 | TestGroup* nextSibling = parent->getNextChild(*current); |
| 292 | if (nextSibling) |
| 293 | return nextSibling->getFirstLeaf(); |
| 294 | else |
| 295 | return getNextLeaf(parent); |
| 296 | } |
| 297 | |
| 298 | Test::TestGroup* Test::TestGroup::getPreviousLeaf(TestGroup* current) |
| 299 | { |
nothing calls this directly
no test coverage detected