While using CppUnit do i need to maintain a list which contains the list of data structure used in the function/method. Also should a list of all the calling function needs ot be maintained.
Can any help me in getting a answer to the above question
Normally you would create all your test data members in the testing class (see MoneyTest.cpp in cppunit's examples) and initialize them in that class's setUp function. If these data members are used in only one test, than you may prefer to allocate memory for an initialize them inside that specific unit test instead.