Exemple #1
0
 private void RunTest(string inputResourceName, OptionallyEmittedData optionallyEmittedData)
 {
     _currentOptionallyEmittedData = optionallyEmittedData;
     string expectedOutputResourceName = Path.GetFileNameWithoutExtension(inputResourceName);
     expectedOutputResourceName = expectedOutputResourceName + "_" + optionallyEmittedData.ToString().Replace(", ", "+");
     RunTest(inputResourceName, expectedOutputResourceName);
 }
        private string NormalizeOptionallyEmittedDataToString(OptionallyEmittedData optionallyEmittedData)
        {
            string result = optionallyEmittedData.ToString();

            return(result.Replace(", ", "+"));
        }
 public static IEnumerable <SarifLog> InsertOptionalData(this IEnumerable <SarifLog> sarifLogs, OptionallyEmittedData optionalData)
 {
     return(SarifLogProcessorFactory.GetActionStage(SarifLogAction.InsertOptionalData, optionalData.ToString()).Act(sarifLogs));
 }