Lines Matching full:ids
124 std::vector<Repository::LogID> ids; in TEST_F() local
135 ids.emplace_back(pelID(pel->id()), obmcID(1)); in TEST_F()
142 ids.emplace_back(pelID(pel->id()), obmcID(2)); in TEST_F()
146 EXPECT_TRUE(repo.hasPEL(ids[0])); in TEST_F()
147 EXPECT_TRUE(repo.hasPEL(ids[1])); in TEST_F()
152 Repository::LogID id(pelID(ids[0].pelID)); in TEST_F()
157 id.obmcID = ids[0].obmcID; in TEST_F()
161 id.pelID = ids[1].pelID; in TEST_F()
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()
226 // Make a function that saves the IDs in TEST_F()
227 std::vector<uint32_t> ids; in TEST_F() local
228 Repository::ForEachFunc f1 = [&ids](const PEL& pel) { in TEST_F()
229 ids.push_back(pel.id()); in TEST_F()
235 EXPECT_EQ(ids.size(), 2); in TEST_F()
238 Repository::ForEachFunc f2 = [&ids](const PEL& pel) { in TEST_F()
239 ids.push_back(pel.id()); in TEST_F()
243 ids.clear(); in TEST_F()
245 EXPECT_EQ(ids.size(), 1); in TEST_F()
658 // Sanity check the very first PELs with IDs 1 to 4 are in TEST_F()
667 auto IDs = repo.prune(id); in TEST_F() local
685 EXPECT_TRUE(std::find(IDs.begin(), IDs.end(), 500 + i) != IDs.end()); in TEST_F()
717 auto IDs = repo.prune(id); in TEST_F() local
726 EXPECT_EQ(IDs.size(), 20); in TEST_F()
733 EXPECT_TRUE(std::find(IDs.begin(), IDs.end(), 500 + i) != IDs.end()); in TEST_F()
776 auto IDs = repo.prune(id); in TEST_F() local
780 ASSERT_EQ(IDs.size(), 1); in TEST_F()
781 EXPECT_EQ(IDs[0], idToDelete); in TEST_F()
799 auto IDs = repo.prune(id); in TEST_F() local
802 EXPECT_TRUE(IDs.empty()); in TEST_F()
813 IDs = repo.prune(id); in TEST_F()
815 ASSERT_EQ(IDs.size(), 3); in TEST_F()
819 EXPECT_EQ(IDs[0], 500 + 1); in TEST_F()
820 EXPECT_EQ(IDs[1], 500 + 2); in TEST_F()
821 EXPECT_EQ(IDs[2], 500 + 3); in TEST_F()
1033 auto IDs = repo.prune(id); in TEST_F() local
1036 EXPECT_TRUE(IDs.empty()); in TEST_F()
1047 IDs = repo.prune(id); in TEST_F()
1049 ASSERT_EQ(IDs.size(), 3); in TEST_F()
1054 EXPECT_EQ(IDs[0], 500 + 1); in TEST_F()
1055 EXPECT_EQ(IDs[1], 500 + 3); in TEST_F()
1056 EXPECT_EQ(IDs[2], 500 + 4); in TEST_F()