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
Prmaod
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
Prmaod
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.