MCPcopy Create free account
hub / github.com/Kitware/CMake / FindFile

Method FindFile

Source/CTest/cmCTestCoverageHandler.cxx:1673–1688  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1671}
1672
1673std::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
1691namespace {

Callers 1

HandleTracePyCoverageMethod · 0.95

Calls 1

FileExistsFunction · 0.50

Tested by

no test coverage detected