Skip to content

finish the test of class LArG4CalibSD

Liangliang Han requested to merge lihan/athena:TestLArG4CalibSD into master

In this branch, I tested the class LArG4CalibSD in the package LArCalorimeter/LArG4/LArG4Code. Here is how I did.

  1. I place my test code LArG4CalibSD_gtest.cxx in the test folder. And it is for testing the class LArG4CalibSD .
  2. I created the jobOption file optionForTest.txt, which is placed in the share folder.
  3. In oder to add my test classes as friends of the tested classes, I add several lines for that.
  4. Of course, I add some lines in the CMakeLists.txt for compiling my test code, using google test frame work, and so on.
  5. I define a class DerivedILArCalibCalculatorSvcForTest derived from the class ILArCalibCalculatorSvc, which is a abstract class. The class is in the file DerivedILArCalibCalculatorSvcForTest.h, and I used it in my test code.
  6. It is worth mentioning that I use different TEST_F to test different member functions of the tested class.
Edited by Liangliang Han

Merge request reports