cmParseCacheCoverage.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cmParseCacheCoverage_h
  4. #define cmParseCacheCoverage_h
  5. #include "cmConfigure.h" // IWYU pragma: keep
  6. #include "cmParseMumpsCoverage.h"
  7. #include <string>
  8. #include <vector>
  9. class cmCTest;
  10. class cmCTestCoverageHandlerContainer;
  11. /** \class cmParseCacheCoverage
  12. * \brief Parse Cache coverage information
  13. *
  14. * This class is used to parse Cache coverage information for
  15. * mumps.
  16. */
  17. class cmParseCacheCoverage : public cmParseMumpsCoverage
  18. {
  19. public:
  20. cmParseCacheCoverage(cmCTestCoverageHandlerContainer& cont, cmCTest* ctest);
  21. protected:
  22. // implement virtual from parent
  23. bool LoadCoverageData(const char* dir) override;
  24. // remove files with no coverage
  25. void RemoveUnCoveredFiles();
  26. // Read a single mcov file
  27. bool ReadCMCovFile(const char* f);
  28. // split a string based on ,
  29. bool SplitString(std::vector<std::string>& args, std::string const& line);
  30. };
  31. #endif