2016-09-27 22:01:08 +03:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2012-05-02 01:00:43 +04:00
|
|
|
#ifndef cmParseCacheCoverage_h
|
|
|
|
#define cmParseCacheCoverage_h
|
|
|
|
|
2016-08-24 23:01:40 +03:00
|
|
|
#include <cmConfigure.h>
|
|
|
|
|
2012-05-02 01:00:43 +04:00
|
|
|
#include "cmParseMumpsCoverage.h"
|
|
|
|
|
2016-08-24 23:01:40 +03:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
class cmCTest;
|
|
|
|
class cmCTestCoverageHandlerContainer;
|
|
|
|
|
2012-05-02 01:00:43 +04:00
|
|
|
/** \class cmParseCacheCoverage
|
|
|
|
* \brief Parse Cache coverage information
|
|
|
|
*
|
|
|
|
* This class is used to parse Cache coverage information for
|
|
|
|
* mumps.
|
|
|
|
*/
|
|
|
|
class cmParseCacheCoverage : public cmParseMumpsCoverage
|
|
|
|
{
|
|
|
|
public:
|
2016-05-16 17:34:04 +03:00
|
|
|
cmParseCacheCoverage(cmCTestCoverageHandlerContainer& cont, cmCTest* ctest);
|
|
|
|
|
2012-05-02 01:00:43 +04:00
|
|
|
protected:
|
|
|
|
// implement virtual from parent
|
2016-06-27 22:25:27 +03:00
|
|
|
bool LoadCoverageData(const char* dir) CM_OVERRIDE;
|
2012-05-03 01:23:01 +04:00
|
|
|
// remove files with no coverage
|
|
|
|
void RemoveUnCoveredFiles();
|
2012-05-02 01:00:43 +04:00
|
|
|
// Read a single mcov file
|
|
|
|
bool ReadCMCovFile(const char* f);
|
|
|
|
// split a string based on ,
|
2016-05-16 17:34:04 +03:00
|
|
|
bool SplitString(std::vector<std::string>& args, std::string const& line);
|
2012-05-02 01:00:43 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|