diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-12-09 03:36:54 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-12-09 03:36:54 (GMT) |
commit | c17a0495f9df24c6b90fc825b7804d09d8501436 (patch) | |
tree | 39b2e51f1b7ef3235d4b9e75adbfc0aadf9bfa8f /Source/ctest.h | |
parent | e7d1a299fb352a9f4cb8cdca9d6983f898beb374 (diff) | |
download | CMake-c17a0495f9df24c6b90fc825b7804d09d8501436.zip CMake-c17a0495f9df24c6b90fc825b7804d09d8501436.tar.gz CMake-c17a0495f9df24c6b90fc825b7804d09d8501436.tar.bz2 |
Initial addition of coverage
Diffstat (limited to 'Source/ctest.h')
-rw-r--r-- | Source/ctest.h | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/Source/ctest.h b/Source/ctest.h index 23ecb42..54af2d4 100644 --- a/Source/ctest.h +++ b/Source/ctest.h @@ -50,6 +50,11 @@ public: int TestDirectory(); /** + * Try to get coverage of the project + */ + int CoverageDirectory(); + + /** * Do revision control update of directory */ int UpdateDirectory(); @@ -127,8 +132,26 @@ private: std::string m_PostContext; }; + struct cmCTestCoverage + { + cmCTestCoverage() + { + m_FullPath = ""; + m_Covered = false; + m_Tested = 0; + m_UnTested = 0; + m_Lines.clear(); + } + std::string m_FullPath; + bool m_Covered; + int m_Tested; + int m_UnTested; + std::vector<int> m_Lines; + }; + typedef std::vector<cmCTestTestResult> tm_TestResultsVector; typedef std::map<std::string, std::string> tm_DartConfigurationMap; + typedef std::map<std::string, cmCTestCoverage> tm_CoverageMap; tm_TestResultsVector m_TestResults; std::string m_ToplevelPath; @@ -149,8 +172,8 @@ private: void GenerateDartBuildOutput(std::ostream& os, std::vector<cmCTestBuildErrorWarning>); - bool OpenFile(const std::string& path, - const std::string& name, std::ofstream& stream); + bool OpenOutputFile(const std::string& path, + const std::string& name, std::ofstream& stream); std::string MakeXMLSafe(const std::string&); }; |