MCPcopy Create free account
hub / github.com/Project-LemonLime/Project_LemonLime / getTestCase

Method getTestCase

src/core/task.cpp:155–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 12

refreshTaskMethod · 0.80
addTestCasesMethod · 0.80
modifySelectedMethod · 0.80
moveUpSelectedMethod · 0.80
moveDownSelectedMethod · 0.80
removeSelectedMethod · 0.80
mergeSelectedMethod · 0.80
splitSelectedMethod · 0.80
appendNewCaseMethod · 0.80
judgeMethod · 0.80
taskSkippedMethod · 0.80

Calls

no outgoing calls

Tested by 8

refreshTaskMethod · 0.64
modifySelectedMethod · 0.64
moveUpSelectedMethod · 0.64
moveDownSelectedMethod · 0.64
removeSelectedMethod · 0.64
mergeSelectedMethod · 0.64
splitSelectedMethod · 0.64
appendNewCaseMethod · 0.64