| 165 | } |
| 166 | |
| 167 | Test::TestGroup* Test::TestGroup::addPath(SampleArray<TestGroup*>& path) |
| 168 | { |
| 169 | if (path.size() == 0) |
| 170 | return NULL; |
| 171 | |
| 172 | TestGroup* current = this; |
| 173 | for (unsigned i = 0; i < path.size(); i++) |
| 174 | { |
| 175 | TestGroup* pathGroup = path[i]; |
| 176 | TestGroup* child = current->getChildByName(pathGroup->getName()); |
| 177 | if (!child) |
| 178 | { |
| 179 | child = new TestGroup(pathGroup); |
| 180 | current->addGroup(child); |
| 181 | } |
| 182 | current = child; |
| 183 | } |
| 184 | |
| 185 | return current; |
| 186 | } |
| 187 | |
| 188 | Test::TestGroup* Test::TestGroup::getNextChild(TestGroup& current) |
| 189 | { |
nothing calls this directly
no test coverage detected