Menu

do i need to main a data structure list ?

pramod
2006-09-07
2013-04-22
  • pramod

    pramod - 2006-09-07

    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

     
    • john_1726

      john_1726 - 2006-11-21

      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.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.