public IList<AssemblyNode> InitMutantsForOperators(ProgressCounter percentCompleted) { var root = new MutationRootNode(); int[] id = { 1 }; Func<int> genId = () => id[0]++; //var originalModules = _choices.WhiteSource;//_whiteCache.GetWhiteModules(); percentCompleted.Initialize(_originalCodebase.ModulesToMutate.Count); var subProgress = percentCompleted.CreateSubprogress(); var sw = new Stopwatch(); var assNodes = new List<AssemblyNode>(); foreach (var module in _originalCodebase.ModulesToMutate) { sw.Restart(); var mergedTargets = _mutationExecutor.FindTargets(module, subProgress); var assemblyNode = BuildMutantsTree(module.Module.Name, mergedTargets); _log.Info("Found total of: " + mergedTargets.Values.Count() + " mutation targets in " + assemblyNode.Name); assNodes.Add(assemblyNode); percentCompleted.Progress(); } root.State = MutantResultState.Untested; return assNodes; }
public IList <AssemblyNode> InitMutantsForOperators(ProgressCounter percentCompleted) { var root = new MutationRootNode(); int[] id = { 1 }; Func <int> genId = () => id[0]++; //var originalModules = _choices.WhiteSource;//_whiteCache.GetWhiteModules(); percentCompleted.Initialize(_originalCodebase.ModulesToMutate.Count); var subProgress = percentCompleted.CreateSubprogress(); var sw = new Stopwatch(); var assNodes = new List <AssemblyNode>(); foreach (var module in _originalCodebase.ModulesToMutate) { sw.Restart(); var mergedTargets = _mutationExecutor.FindTargets(module, subProgress); var assemblyNode = BuildMutantsTree(module.Module.Name, mergedTargets); _log.Info("Found total of: " + mergedTargets.Values.Count() + " mutation targets in " + assemblyNode.Name); assNodes.Add(assemblyNode); percentCompleted.Progress(); } assNodes = modifyAssNodes(assNodes); root.State = MutantResultState.Untested; return(assNodes); }