| 1671 | } |
| 1672 | |
| 1673 | std::string cmCTestCoverageHandler::FindFile( |
| 1674 | cmCTestCoverageHandlerContainer* cont, std::string const& fileName) |
| 1675 | { |
| 1676 | std::string fileNameNoE = |
| 1677 | cmSystemTools::GetFilenameWithoutLastExtension(fileName); |
| 1678 | // First check in source and binary directory |
| 1679 | std::string fullName = cont->SourceDir + "/" + fileNameNoE + ".py"; |
| 1680 | if (cmSystemTools::FileExists(fullName)) { |
| 1681 | return fullName; |
| 1682 | } |
| 1683 | fullName = cont->BinaryDir + "/" + fileNameNoE + ".py"; |
| 1684 | if (cmSystemTools::FileExists(fullName)) { |
| 1685 | return fullName; |
| 1686 | } |
| 1687 | return ""; |
| 1688 | } |
| 1689 | |
| 1690 | // This is a header put on each marked up source file |
| 1691 | namespace { |
no test coverage detected