MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / Map_Contains

Function Map_Contains

src/datatypes/map.c:180–189  ·  view source on GitHub ↗

checks if 'key' is in map

Source from the content-addressed store, hash-verified

178
179// checks if 'key' is in map
180bool Map_Contains
181(
182 SIValue map,
183 SIValue key
184) {
185 ASSERT(SI_TYPE(map) & T_MAP);
186 ASSERT(SI_TYPE(key) & T_STRING);
187
188 return (Map_KeyIdx(map, key) != -1);
189}
190
191uint Map_KeyCount
192(

Callers 3

test_empty_mapFunction · 0.85
test_map_addFunction · 0.85
test_map_removeFunction · 0.85

Calls 1

Map_KeyIdxFunction · 0.85

Tested by 3

test_empty_mapFunction · 0.68
test_map_addFunction · 0.68
test_map_removeFunction · 0.68