Ejemplo n.º 1
0
 public void ResetHits()
 {
     if (!LoadRuntimeConfig())
     {
         return;
     }
     foreach (var process in _currentRuntimeConfig.Processes)
     {
         _logger.LogInformation($"Resetting hits for process {process.ID} on port {process.ListeningPort}");
         RecordingControllerClient.ResetHits(_host, process.ListeningPort);
     }
 }
Ejemplo n.º 2
0
        public CoverageResult CollectResultAndReset()
        {
            if (!LoadRuntimeConfig())
            {
                return(new CoverageResult(_map, Array.Empty <int[]>()));
            }
            CoverageResult result = null;

            foreach (var process in _currentRuntimeConfig.Processes)
            {
                _logger.LogInformation($"Collecting coverage result from process {process.ID} on port {process.ListeningPort}");
                var procResult = RecordingControllerClient.CollectResultAndReset(_host, process.ListeningPort, _map);
                if (result == null)
                {
                    result = procResult;
                }
                else
                {
                    result = result.MergeWith(procResult);
                }
            }
            return(result);
        }
Ejemplo n.º 3
0
 public void ResetHits()
 {
     _logger.LogInformation($"Resetting hits for {_host}:{_port}");
     RecordingControllerClient.ResetHits(_host, _port);
 }
Ejemplo n.º 4
0
 public CoverageResult CollectResultAndReset()
 {
     _logger.LogInformation($"Collecting coverage result for {_host}:{_port}");
     return(RecordingControllerClient.CollectResultAndReset(_host, _port, _map));
 }