diff options
author | Joseph Snyder <joe.snyder@kitware.com> | 2014-09-29 18:52:10 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-10-21 19:02:20 (GMT) |
commit | 5c31c3e4eb36cccaaf72d0f0582beed98f6665e0 (patch) | |
tree | 2bd146d57c42f54cf891de956bb55aa04be056a4 /Source/CTest/cmParseDelphiCoverage.h | |
parent | 453f20d89381d8d5c2e7afb91559c754dc03910e (diff) | |
download | CMake-5c31c3e4eb36cccaaf72d0f0582beed98f6665e0.zip CMake-5c31c3e4eb36cccaaf72d0f0582beed98f6665e0.tar.gz CMake-5c31c3e4eb36cccaaf72d0f0582beed98f6665e0.tar.bz2 |
CTest: Add code coverage parser for Pascal/Delphi
Add a class to parse the HTML output of the Delphi-code-coverage tool
http://code.google.com/p/delphi-code-coverage/
Add a test for the new parser.
Diffstat (limited to 'Source/CTest/cmParseDelphiCoverage.h')
-rw-r--r-- | Source/CTest/cmParseDelphiCoverage.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/Source/CTest/cmParseDelphiCoverage.h b/Source/CTest/cmParseDelphiCoverage.h new file mode 100644 index 0000000..018340b --- /dev/null +++ b/Source/CTest/cmParseDelphiCoverage.h @@ -0,0 +1,46 @@ +/*============================================================================ + CMake - Cross Platform Makefile Generator + Copyright 2000-2009 Kitware, Inc. + + Distributed under the OSI-approved BSD License (the "License"); + see accompanying file Copyright.txt for details. + + This software is distributed WITHOUT ANY WARRANTY; without even the + implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the License for more information. +============================================================================*/ + +#ifndef cmParseDelphiCoverage_h +#define cmParseDelphiCoverage_h + +#include "cmStandardIncludes.h" +#include "cmCTestCoverageHandler.h" + + +/** \class cmParseDelphiCoverage + * \brief Parse Delphi coverage information + * + * This class is used to parse Delphi(Pascal) coverage information + * generated by the Delphi-Code-Coverage tool + * + * https://code.google.com/p/delphi-code-coverage/ + */ + +class cmParseDelphiCoverage + { + public: + cmParseDelphiCoverage(cmCTestCoverageHandlerContainer& cont, + cmCTest* ctest); + bool LoadCoverageData(const std::vector<std::string> files); + bool ReadDelphiHTML(const char* file); + // Read a single HTML file from output + bool ReadHTMLFile(const char* f); + + + protected: + + class HTMLParser; + cmCTestCoverageHandlerContainer& Coverage; + cmCTest* CTest; + }; +#endif |