Lines Matching refs:testMap
116 BpfMap<uint32_t, uint32_t> testMap; in TEST_F() local
117 ASSERT_RESULT_OK(testMap.resetMap(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, BPF_F_NO_PREALLOC)); in TEST_F()
120 writeToMapAndCheck(testMap, key, value_write); in TEST_F()
121 Result<uint32_t> value_read = testMap.readValue(key); in TEST_F()
123 Result<uint32_t> key_read = testMap.getFirstKey(); in TEST_F()
125 ASSERT_RESULT_OK(testMap.deleteValue(key)); in TEST_F()
126 ASSERT_GT(0, findMapEntry(testMap.getMap(), &key, &value_read)); in TEST_F()
131 BpfMap<uint32_t, uint32_t> testMap; in TEST_F() local
132 ASSERT_RESULT_OK(testMap.resetMap(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, BPF_F_NO_PREALLOC)); in TEST_F()
135 writeToMapAndCheck(testMap, key, value_write); in TEST_F()
137 testMap.reset(-1); in TEST_F()
138 checkMapInvalid(testMap); in TEST_F()
139 ASSERT_GT(0, findMapEntry(testMap.getMap(), &key, &value_write)); in TEST_F()
172 BpfMap<uint32_t, uint32_t> testMap; in TEST_F() local
173 ASSERT_RESULT_OK(testMap.resetMap(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, BPF_F_NO_PREALLOC)); in TEST_F()
174 populateMap(TEST_MAP_SIZE, testMap); in TEST_F()
184 EXPECT_RESULT_OK(testMap.iterate(iterateWithDeletion)); in TEST_F()
187 expectMapEmpty(testMap); in TEST_F()
191 BpfMap<uint32_t, uint32_t> testMap; in TEST_F() local
192 ASSERT_RESULT_OK(testMap.resetMap(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, BPF_F_NO_PREALLOC)); in TEST_F()
193 populateMap(TEST_MAP_SIZE, testMap); in TEST_F()
205 EXPECT_RESULT_OK(testMap.iterateWithValue(iterateWithDeletion)); in TEST_F()
208 expectMapEmpty(testMap); in TEST_F()
212 BpfMap<uint32_t, uint32_t> testMap; in TEST_F() local
213 ASSERT_RESULT_OK(testMap.resetMap(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, BPF_F_NO_PREALLOC)); in TEST_F()
214 expectMapEmpty(testMap); in TEST_F()
217 writeToMapAndCheck(testMap, key, value_write); in TEST_F()
218 Result<bool> isEmpty = testMap.isEmpty(); in TEST_F()
221 ASSERT_RESULT_OK(testMap.deleteValue(key)); in TEST_F()
222 ASSERT_GT(0, findMapEntry(testMap.getMap(), &key, &value_write)); in TEST_F()
224 expectMapEmpty(testMap); in TEST_F()
226 EXPECT_RESULT_OK(testMap.iterate( in TEST_F()
233 EXPECT_RESULT_OK(testMap.iterateWithValue( in TEST_F()
243 BpfMap<uint32_t, uint32_t> testMap; in TEST_F() local
244 ASSERT_RESULT_OK(testMap.resetMap(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE)); in TEST_F()
245 populateMap(TEST_MAP_SIZE, testMap); in TEST_F()
246 Result<bool> isEmpty = testMap.isEmpty(); in TEST_F()
249 ASSERT_RESULT_OK(testMap.clear()); in TEST_F()
250 expectMapEmpty(testMap); in TEST_F()