public void GetAllLazy() { PrepareZip("a", "b", "c"); var actual = _sut.GetAllLazy <string>(); var expected = new List <string> { "a", "b", "c" }; CollectionAssert.AreEqual(expected, actual); }
private void CreateStatistics(int taskId) { _log.StartingStatCreation(taskId); var extractor = new InteractionStatisticsExtractor(); string zip; while (GetNextZip(out zip)) { _log.CreatingStats(taskId, zip); var file = _io.GetFullPath_In(zip); using (var ra = new ReadingArchive(file)) { var es = ra.GetAllLazy <IDEEvent>(); var stats = extractor.CreateStatistics(es); StoreResult(zip, stats); } } _log.FinishedStatCreation(taskId); }
private void CreateStatistics(int taskId) { string zip; while (GetNextZip(out zip)) { _log.CreatingStats(taskId, zip); var file = _io.GetFullPath_In(zip); using (var ra = new ReadingArchive(file)) { var ctxs = ra.GetAllLazy <Context>(); foreach (var ctx in ctxs) { ctx.SST.Accept( new EmDebugVisitor(typesAll, seenMethods, firstAll, superAll, elemAll, invAll), ctx.TypeShape); } } } _log.FinishedStatCreation(taskId); }