| 153 | void Task::addTestCase(TestCase *testCase, int loc) { testCaseList.insert(loc, testCase); } |
| 154 | |
| 155 | auto Task::getTestCase(int index) const -> TestCase * { |
| 156 | if (0 <= index && index < testCaseList.size()) { |
| 157 | return testCaseList[index]; |
| 158 | } |
| 159 | |
| 160 | return nullptr; |
| 161 | } |
| 162 | |
| 163 | void Task::deleteTestCase(int index) { |
| 164 | if (0 <= index && index < testCaseList.size()) { |
no outgoing calls