Example #1
0
 public CodeCoverageProcessor(DbTraceCodeFormatter dbCodeFormatter, HighlightCodeProvider highlightCodeProvider)
 {
     _dbCodeFormatter       = dbCodeFormatter;
     _highlightCodeProvider = highlightCodeProvider;
     _dataScrubber          = new DataScrubber(dbCodeFormatter);
     _highlightMarkUpLength = _dbCodeFormatter.StartHighlightMarkUp.Length + _dbCodeFormatter.EndHighlightMarkUp.Length;
 }
Example #2
0
 public GenerateOutputCommand(DbProvider dbProvider, DbTraceCodeFormatter dbCodeFormatter,
                              HighlightCodeProvider codeHighlighter, OutputProvider outputProvider, string traceName)
 {
     _dbProvider      = dbProvider;
     _dbCodeFormatter = dbCodeFormatter;
     _codeHighlighter = codeHighlighter;
     _outputProvider  = outputProvider;
     _traceName       = traceName;
 }
Example #3
0
        public DataScrubber(DbTraceCodeFormatter traceCodeFormatter, string scrubFile)
        {
            _traceCodeFormatter = traceCodeFormatter;
            _scrubFile = scrubFile;

            // Create a dictionary to hold the different scrub files, and so we only read each file once to reduce disk IO.
            if (_scrubFiles == null)
                _scrubFiles = new Dictionary<string, string[]>();
            if (!_scrubFiles.ContainsKey(scrubFile))
                _scrubFiles.Add(scrubFile, System.IO.File.ReadAllLines(scrubFile));
        }
Example #4
0
        public DataScrubber(DbTraceCodeFormatter traceCodeFormatter, string scrubFile)
        {
            _traceCodeFormatter = traceCodeFormatter;
            _scrubFile          = scrubFile;

            // Create a dictionary to hold the different scrub files, and so we only read each file once to reduce disk IO.
            if (_scrubFiles == null)
            {
                _scrubFiles = new Dictionary <string, string[]>();
            }
            if (!_scrubFiles.ContainsKey(scrubFile))
            {
                _scrubFiles.Add(scrubFile, System.IO.File.ReadAllLines(scrubFile));
            }
        }
Example #5
0
 public DataScrubber(DbTraceCodeFormatter traceCodeFormatter)
 {
     _traceCodeFormatter = traceCodeFormatter;
 }
Example #6
0
 public DataScrubber(DbTraceCodeFormatter traceCodeFormatter)
 {
    _traceCodeFormatter = traceCodeFormatter;
 }