cmParseGTMCoverage.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc.
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmParseGTMCoverage_h
  11. #define cmParseGTMCoverage_h
  12. #include "cmParseMumpsCoverage.h"
  13. /** \class cmParseGTMCoverage
  14. * \brief Parse GTM coverage information
  15. *
  16. * This class is used to parse GTM coverage information for
  17. * mumps.
  18. */
  19. class cmParseGTMCoverage : public cmParseMumpsCoverage
  20. {
  21. public:
  22. cmParseGTMCoverage(cmCTestCoverageHandlerContainer& cont, cmCTest* ctest);
  23. protected:
  24. // implement virtual from parent
  25. bool LoadCoverageData(const char* dir);
  26. // Read a single mcov file
  27. bool ReadMCovFile(const char* f);
  28. // find out what line in a mumps file (filepath) the given entry point
  29. // or function is. lineoffset is set by this method.
  30. bool FindFunctionInMumpsFile(std::string const& filepath,
  31. std::string const& function, int& lineoffset);
  32. // parse a line from a .mcov file, and fill in the
  33. // routine, function, linenumber and coverage count
  34. bool ParseMCOVLine(std::string const& line, std::string& routine,
  35. std::string& function, int& linenumber, int& count);
  36. };
  37. #endif