public GroupMerger(IPreprocessingIo io, IGroupMergerLogger log) { _io = io; _log = log; _log.WorkingIn(io.GetFullPath_In(""), io.GetFullPath_Merged("")); }
public void Setup() { _actualProcessedZips = Sets.NewHashSet <string>(); _actualGroupedIds = null; _actualGroups = Lists.NewList <IKaVESet <string> >(); _actualCleanedZips = Lists.NewList <string>(); _io = Mock.Of <IPreprocessingIo>(); Mock.Get(_io).Setup(io => io.FindRelativeZipPaths()).Returns(GetExpectedZips()); Mock.Get(_io) .Setup(io => io.GetFullPath_In(It.IsAny <string>())) .Returns <string>(relZip => "<dirIn>\\" + relZip); Mock.Get(_io) .Setup(io => io.GetFullPath_Merged(It.IsAny <string>())) .Returns <string>(relZip => "<dirMerged>\\" + relZip); Mock.Get(_io) .Setup(io => io.GetFullPath_Out(It.IsAny <string>())) .Returns <string>(relZip => "<dirOut>\\" + relZip); _log = Mock.Of <IMultiThreadedPreprocessingLogger>(); Mock.Get(_log) .Setup(l => l.Error(It.IsAny <int>(), It.IsAny <Exception>())) .Callback <int, Exception>((taskId, ex) => _lastLoggedException = ex); _sut = new MultiThreadedPreprocessing( _io, _log, NumWorker, IdReaderFactory, CreateGrouper(), GroupMergerFactory, CleanerFactory); }
public EditLocationAnalysisRunner(int numProcs, IPreprocessingIo io, IEditLocationAnalysisLogger log) : base( io, log, numProcs) { _io = io; _log = log; }
public Cleaner(IPreprocessingIo io, ICleanerLogger log) { _io = io; _log = log; _log.WorkingIn(io.GetFullPath_Merged(""), io.GetFullPath_Out("")); Filters = new HashSet <IFilter>(); Fixers = new HashSet <IFixer>(); }
public ContextStatisticsRunner(IPreprocessingIo io, IContextFilter cf, IContextStatisticsLogger log, int numProcs) : base(io, log, numProcs) { _io = io; _cf = cf; _log = log; }
public MultiThreadedPreprocessing(IPreprocessingIo io, IMultiThreadedPreprocessingLogger log, int numProcs, Func <int, IIdReader> idReaderFactory, IGrouper grouper, Func <int, IGroupMerger> groupMergerFactory, Func <int, ICleaner> cleanerFactory) { _io = io; _log = log; _numProcs = numProcs; _log.Init(numProcs, _io.GetFullPath_In(""), _io.GetFullPath_Merged(""), _io.GetFullPath_Out("")); _idReaderFactory = idReaderFactory; _grouper = grouper; _groupMergerFactory = groupMergerFactory; _cleanerFactory = cleanerFactory; }
protected StatisticsRunnerBase(IPreprocessingIo io, IStatisticsLogger log, int numProcs) { _io = io; _log = log; _numProcs = numProcs; }
public SSTTransformationComparison(IPreprocessingIo ioA, IPreprocessingIo ioB) { _ioB = ioB; _ioA = ioA; }
public InteractionStatisticsRunner(IPreprocessingIo io, InteractionStatisticsLogger log, int numProcs) : base(io, log, numProcs) { _io = io; _log = log; }
public EmDebug(IPreprocessingIo io, IStatisticsLogger log, int numProcs) : base(io, log, numProcs) { _io = io; _log = log; }