| 59 | } |
| 60 | |
| 61 | AutomatedTest* AutomatedTests::GetCurrentTest() const |
| 62 | { |
| 63 | if(!mTests.GetNbEntries()) |
| 64 | return null; |
| 65 | |
| 66 | /* if(mIndex>=mTests.GetNbEntries()) |
| 67 | return null; |
| 68 | |
| 69 | return (PhysicsTest*)mTests.GetEntry(mIndex);*/ |
| 70 | |
| 71 | const udword N = sizeof(AutomatedTest)/sizeof(udword); |
| 72 | const udword NbTests = mTests.GetNbEntries()/N; |
| 73 | if(mIndex>=NbTests) |
| 74 | return null; |
| 75 | |
| 76 | AutomatedTest* AT = (AutomatedTest*)mTests.GetEntries(); |
| 77 | return AT + mIndex; |
| 78 | } |
| 79 | |
| 80 | AutomatedTest* AutomatedTests::SelectNextTest() |
| 81 | { |
no outgoing calls
no test coverage detected