Lines Matching refs:testMap

122     BpfMap<uint32_t, uint32_t> testMap(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, BPF_F_NO_PREALLOC);  in TEST_F()  local
125 writeToMapAndCheck(testMap, key, value_write); in TEST_F()
126 Result<uint32_t> value_read = testMap.readValue(key); in TEST_F()
128 Result<uint32_t> key_read = testMap.getFirstKey(); in TEST_F()
130 ASSERT_RESULT_OK(testMap.deleteValue(key)); in TEST_F()
131 ASSERT_GT(0, findMapEntry(testMap.getMap(), &key, &value_read)); in TEST_F()
138 BpfMap<uint32_t, uint32_t> testMap(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, BPF_F_NO_PREALLOC); in TEST_F() local
141 writeToMapAndCheck(testMap, key, value_write); in TEST_F()
143 testMap.reset(-1); in TEST_F()
144 checkMapInvalid(testMap); in TEST_F()
145 ASSERT_GT(0, findMapEntry(testMap.getMap(), &key, &value_write)); in TEST_F()
182 BpfMap<uint32_t, uint32_t> testMap(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, BPF_F_NO_PREALLOC); in TEST_F() local
183 populateMap(TEST_MAP_SIZE, testMap); in TEST_F()
193 EXPECT_RESULT_OK(testMap.iterate(iterateWithDeletion)); in TEST_F()
196 expectMapEmpty(testMap); in TEST_F()
202 BpfMap<uint32_t, uint32_t> testMap(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, BPF_F_NO_PREALLOC); in TEST_F() local
203 populateMap(TEST_MAP_SIZE, testMap); in TEST_F()
215 EXPECT_RESULT_OK(testMap.iterateWithValue(iterateWithDeletion)); in TEST_F()
218 expectMapEmpty(testMap); in TEST_F()
224 BpfMap<uint32_t, uint32_t> testMap(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, BPF_F_NO_PREALLOC); in TEST_F() local
225 expectMapEmpty(testMap); in TEST_F()
228 writeToMapAndCheck(testMap, key, value_write); in TEST_F()
229 Result<bool> isEmpty = testMap.isEmpty(); in TEST_F()
232 ASSERT_RESULT_OK(testMap.deleteValue(key)); in TEST_F()
233 ASSERT_GT(0, findMapEntry(testMap.getMap(), &key, &value_write)); in TEST_F()
235 expectMapEmpty(testMap); in TEST_F()
237 EXPECT_RESULT_OK(testMap.iterate( in TEST_F()
244 EXPECT_RESULT_OK(testMap.iterateWithValue( in TEST_F()
256 BpfMap<uint32_t, uint32_t> testMap(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, BPF_F_NO_PREALLOC); in TEST_F() local
257 populateMap(TEST_MAP_SIZE, testMap); in TEST_F()
258 Result<bool> isEmpty = testMap.isEmpty(); in TEST_F()
261 ASSERT_RESULT_OK(testMap.clear()); in TEST_F()
262 expectMapEmpty(testMap); in TEST_F()