MCPcopy Create free account
hub / github.com/cpputest/cpputest / UtestShellPointerArray

Method UtestShellPointerArray

src/CppUTest/Utest.cpp:772–786  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

770//////////////////// UtestShellPointerArray
771
772UtestShellPointerArray::UtestShellPointerArray(UtestShell* firstTest)
773 : arrayOfTests_(NULLPTR), count_(0)
774{
775 count_ = (firstTest) ? firstTest->countTests() : 0;
776 if (count_ == 0) return;
777
778 arrayOfTests_ = new UtestShell*[count_];
779
780 UtestShell*currentTest = firstTest;
781 for (size_t i = 0; i < count_; i++)
782 {
783 arrayOfTests_[i] = currentTest;
784 currentTest = currentTest->getNext();
785 }
786}
787
788UtestShellPointerArray::~UtestShellPointerArray()
789{

Callers

nothing calls this directly

Calls 2

countTestsMethod · 0.45
getNextMethod · 0.45

Tested by

no test coverage detected