diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-10-17 23:45:36 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-10-17 23:45:36 (GMT) |
commit | 17619508e9d651f32cbd8d5bfbea6ac94ef975fc (patch) | |
tree | 339d71dbba0213f8123a00f30d77ba722fabac3f /Source/CTest/cmCTestCoverageHandler.h | |
parent | 9cbfe0e0b92c0ac624e4e37f967583cd0713d96a (diff) | |
download | CMake-17619508e9d651f32cbd8d5bfbea6ac94ef975fc.zip CMake-17619508e9d651f32cbd8d5bfbea6ac94ef975fc.tar.gz CMake-17619508e9d651f32cbd8d5bfbea6ac94ef975fc.tar.bz2 |
ENH: Update to the new coverage code. It may not be perfect yet, but it is a start
Diffstat (limited to 'Source/CTest/cmCTestCoverageHandler.h')
-rw-r--r-- | Source/CTest/cmCTestCoverageHandler.h | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/Source/CTest/cmCTestCoverageHandler.h b/Source/CTest/cmCTestCoverageHandler.h index dd3760a..0928cac 100644 --- a/Source/CTest/cmCTestCoverageHandler.h +++ b/Source/CTest/cmCTestCoverageHandler.h @@ -47,18 +47,22 @@ public: private: bool m_Verbose; cmCTest *m_CTest; + bool ShouldIDoCoverage(const char* file, const char* srcDir, + const char* binDir, bool verbose); + bool StartLogFile(std::ofstream& ostr, int logFileCount); + void StopLogFile(std::ofstream& ostr, int logFileCount); struct cmCTestCoverage - { + { cmCTestCoverage() { - m_AbsolutePath = ""; - m_FullPath = ""; - m_Covered = false; - m_Tested = 0; - m_UnTested = 0; - m_Lines.clear(); - m_Show = false; + m_AbsolutePath = ""; + m_FullPath = ""; + m_Covered = false; + m_Tested = 0; + m_UnTested = 0; + m_Lines.clear(); + m_Show = false; } std::string m_AbsolutePath; std::string m_FullPath; @@ -67,7 +71,7 @@ private: int m_UnTested; std::vector<int> m_Lines; bool m_Show; - }; + }; typedef std::map<std::string, cmCTestCoverage> tm_CoverageMap; }; |