Lines Matching refs:repo
71 Repository repo{repoPath}; in TEST_F() local
75 repo.add(pel); in TEST_F()
89 EXPECT_EQ(repo.lastPelID(), pel->id()); in TEST_F()
99 Repository repo{repoPath}; in TEST_F() local
107 repo.add(pel); in TEST_F()
109 auto removedID = repo.remove(id); in TEST_F()
113 EXPECT_FALSE(repo.hasPEL(id)); in TEST_F()
116 EXPECT_FALSE(repo.remove(id)); in TEST_F()
127 Repository repo{repoPath}; in TEST_F() local
134 repo.add(pel); in TEST_F()
141 repo.add(pel); in TEST_F()
146 EXPECT_TRUE(repo.hasPEL(ids[0])); in TEST_F()
147 EXPECT_TRUE(repo.hasPEL(ids[1])); in TEST_F()
153 EXPECT_TRUE(repo.hasPEL(id)); in TEST_F()
158 EXPECT_TRUE(repo.hasPEL(id)); in TEST_F()
163 EXPECT_TRUE(repo.hasPEL(id)); in TEST_F()
168 EXPECT_FALSE(repo.hasPEL(id)); in TEST_F()
171 EXPECT_FALSE(repo.remove(id)); in TEST_F()
177 Repository repo{repoPath}; in TEST_F() local
178 EXPECT_TRUE(repo.hasPEL(ids[0])); in TEST_F()
179 EXPECT_TRUE(repo.hasPEL(ids[1])); in TEST_F()
181 repo.remove(ids[0]); in TEST_F()
182 EXPECT_FALSE(repo.hasPEL(ids[0])); in TEST_F()
184 repo.remove(ids[1]); in TEST_F()
185 EXPECT_FALSE(repo.hasPEL(ids[1])); in TEST_F()
192 Repository repo{repoPath}; in TEST_F() local
195 auto noData = repo.getPELData(badID); in TEST_F()
203 repo.add(pel); in TEST_F()
206 auto pelData = repo.getPELData(id); in TEST_F()
214 Repository repo{repoPath}; in TEST_F() local
219 repo.add(pel); in TEST_F()
224 repo.add(pel); in TEST_F()
233 repo.for_each(f1); in TEST_F()
244 repo.for_each(f2); in TEST_F()
261 Repository repo{repoPath}; in TEST_F() local
262 repo.subscribeToAdds("test", ac); in TEST_F()
263 repo.subscribeToDeletes("test", dc); in TEST_F()
268 repo.add(pel); in TEST_F()
274 repo.remove(id); in TEST_F()
278 repo.unsubscribeFromAdds("test"); in TEST_F()
279 repo.unsubscribeFromDeletes("test"); in TEST_F()
284 repo.add(pel); in TEST_F()
287 repo.remove(id); in TEST_F()
297 Repository repo{repoPath}; in TEST_F() local
302 repo.add(pel); in TEST_F()
310 auto a = repo.getPELAttributes(id); in TEST_F()
315 a = repo.getPELAttributes(id); in TEST_F()
321 Repository repo{repoPath}; in TEST_F() local
326 auto a = repo.getPELAttributes(id); in TEST_F()
331 a = repo.getPELAttributes(id); in TEST_F()
345 Repository repo{repoPath}; in TEST_F() local
347 repo.add(pel); in TEST_F()
349 auto a = repo.getPELAttributes(id); in TEST_F()
352 repo.setPELHostTransState(pel->id(), TransmissionState::acked); in TEST_F()
355 a = repo.getPELAttributes(id); in TEST_F()
359 auto pelData = repo.getPELData(id); in TEST_F()
366 Repository repo{repoPath}; in TEST_F() local
369 auto a = repo.getPELAttributes(id); in TEST_F()
373 auto pelData = repo.getPELData(id); in TEST_F()
388 Repository repo{repoPath}; in TEST_F() local
390 repo.add(pel); in TEST_F()
392 auto a = repo.getPELAttributes(id); in TEST_F()
395 repo.setPELHMCTransState(pel->id(), TransmissionState::acked); in TEST_F()
398 a = repo.getPELAttributes(id); in TEST_F()
402 auto pelData = repo.getPELData(id); in TEST_F()
409 Repository repo{repoPath}; in TEST_F() local
412 auto a = repo.getPELAttributes(id); in TEST_F()
416 auto pelData = repo.getPELData(id); in TEST_F()
424 Repository repo{repoPath}; in TEST_F() local
431 repo.add(pel); in TEST_F()
436 auto fd = repo.getPELFD(id); in TEST_F()
465 fd = repo.getPELFD(id); in TEST_F()
475 Repository repo{repoPath, 10000, 500}; in TEST_F() local
484 const auto& stats = repo.getSizeStats(); in TEST_F()
498 repo.add(pel); in TEST_F()
501 const auto& stats = repo.getSizeStats(); in TEST_F()
515 repo.add(pel); in TEST_F()
518 const auto& stats = repo.getSizeStats(); in TEST_F()
532 repo.add(pel); in TEST_F()
535 const auto& stats = repo.getSizeStats(); in TEST_F()
549 repo.add(pel); in TEST_F()
552 const auto& stats = repo.getSizeStats(); in TEST_F()
566 repo.remove(id1); in TEST_F()
568 const auto& stats = repo.getSizeStats(); in TEST_F()
581 repo.remove(id4); in TEST_F()
583 const auto& stats = repo.getSizeStats(); in TEST_F()
596 repo.remove(id2); in TEST_F()
598 const auto& stats = repo.getSizeStats(); in TEST_F()
611 repo.remove(id3); in TEST_F()
613 const auto& stats = repo.getSizeStats(); in TEST_F()
628 Repository repo{repoPath, 4096 * 20, 100}; in TEST_F() local
637 repo.add(pel); in TEST_F()
642 repo.add(pel); in TEST_F()
647 repo.add(pel); in TEST_F()
652 repo.add(pel); in TEST_F()
655 const auto& sizes = repo.getSizeStats(); in TEST_F()
663 EXPECT_TRUE(repo.getPELAttributes(logID)); in TEST_F()
667 auto IDs = repo.prune(id); in TEST_F()
681 EXPECT_FALSE(repo.getPELAttributes(logID)); in TEST_F()
694 Repository repo{repoPath, 4096 * 22, 100}; in TEST_F() local
701 repo.add(pel); in TEST_F()
704 const auto& sizes = repo.getSizeStats(); in TEST_F()
714 EXPECT_TRUE(repo.getPELAttributes(logID)); in TEST_F()
717 auto IDs = repo.prune(id); in TEST_F()
732 EXPECT_FALSE(repo.getPELAttributes(logID)); in TEST_F()
742 Repository repo{repoPath, 4096 * 20, 100}; in TEST_F() local
750 repo.add(pel); in TEST_F()
761 repo.add(pel); in TEST_F()
765 repo.setPELHMCTransState(pel->id(), TransmissionState::acked); in TEST_F()
769 repo.setPELHostTransState(pel->id(), TransmissionState::acked); in TEST_F()
773 repo.setPELHostTransState(pel->id(), TransmissionState::sent); in TEST_F()
776 auto IDs = repo.prune(id); in TEST_F()
777 EXPECT_EQ(repo.getSizeStats().total, 4096 * 6); in TEST_F()
789 Repository repo{repoPath, 4096 * 100, 10}; in TEST_F() local
796 repo.add(pel); in TEST_F()
799 auto IDs = repo.prune(id); in TEST_F()
808 repo.add(pel); in TEST_F()
813 IDs = repo.prune(id); in TEST_F()
814 EXPECT_EQ(repo.getSizeStats().total, 4096 * 8); in TEST_F()
828 Repository repo{repoPath, 100 * 4096, 500}; in TEST_F() local
830 EXPECT_FALSE(repo.sizeWarning()); in TEST_F()
837 repo.add(pel); in TEST_F()
840 EXPECT_FALSE(repo.sizeWarning()); in TEST_F()
845 repo.add(pel); in TEST_F()
847 EXPECT_TRUE(repo.sizeWarning()); in TEST_F()
853 Repository repo{repoPath, 4096 * 100, 5}; in TEST_F() local
855 EXPECT_FALSE(repo.sizeWarning()); in TEST_F()
861 repo.add(pel); in TEST_F()
864 EXPECT_FALSE(repo.sizeWarning()); in TEST_F()
870 repo.add(pel); in TEST_F()
873 EXPECT_TRUE(repo.sizeWarning()); in TEST_F()
884 Repository repo{repoPath}; in TEST_F() local
895 repo.add(pel); in TEST_F()
901 auto removedID = repo.remove(id); in TEST_F()
908 EXPECT_FALSE(repo.hasPEL(id)); in TEST_F()
918 Repository repo{repoPath, 100 * 4096, 500}; in TEST_F() local
925 repo.add(pel); in TEST_F()
933 repo.add(pel); in TEST_F()
936 EXPECT_FALSE(repo.sizeWarning()); in TEST_F()
939 repo.remove(id); in TEST_F()
943 EXPECT_FALSE(repo.sizeWarning()); in TEST_F()
946 const auto& sizes = repo.getSizeStats(); in TEST_F()
959 repo.add(pel); in TEST_F()
964 EXPECT_FALSE(repo.sizeWarning()); in TEST_F()
972 Repository repo{repoPath}; in TEST_F() local
978 repo.add(pel); in TEST_F()
982 auto logID = repo.getLogID(idWithPelId); in TEST_F()
990 logID = repo.getLogID(idWithObmcLogId); in TEST_F()
1000 Repository repo{repoPath}; in TEST_F() local
1006 repo.add(pel); in TEST_F()
1010 auto logID = repo.getLogID(idWithPelId); in TEST_F()
1015 logID = repo.getLogID(idWithObmcLogId); in TEST_F()
1023 Repository repo{repoPath, 4096 * 100, 10}; in TEST_F() local
1030 repo.add(pel); in TEST_F()
1033 auto IDs = repo.prune(id); in TEST_F()
1042 repo.add(pel); in TEST_F()
1047 IDs = repo.prune(id); in TEST_F()
1048 EXPECT_EQ(repo.getSizeStats().total, 4096 * 8); in TEST_F()