private bool ProcessBinaryCodeCoverageReport(string binaryCoverageFilePath) { bool success; var xmlFileName = Path.ChangeExtension(binaryCoverageFilePath, XmlReportFileExtension); Debug.Assert(!File.Exists(xmlFileName), "Not expecting a file with the name of the binary-to-XML conversion output to already exist: " + xmlFileName); success = converter.ConvertToXml(binaryCoverageFilePath, xmlFileName, logger); if (success) { logger.LogDebug(Resources.PROC_DIAG_UpdatingProjectInfoFiles); InsertCoverageAnalysisResults(config.SonarOutputDir, xmlFileName); } return(success); }
private bool TryConvertCoverageReport(string binaryCoverageFilePath, out string coverageReportFileName) { coverageReportFileName = null; var xmlFileName = Path.ChangeExtension(binaryCoverageFilePath, XmlReportFileExtension); Debug.Assert(!File.Exists(xmlFileName), "Not expecting a file with the name of the binary-to-XML conversion output to already exist: " + xmlFileName); if (converter.ConvertToXml(binaryCoverageFilePath, xmlFileName)) { coverageReportFileName = xmlFileName; return(true); } return(false); }