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

Function test_hashLongAndDouble

tests/unit/test_value.c:232–238  ·  view source on GitHub ↗

Test for the same hash code for same semantic value.

Source from the content-addressed store, hash-verified

230
231// Test for the same hash code for same semantic value.
232void test_hashLongAndDouble() {
233 SIValue siInt64 = SI_LongVal(1);
234 SIValue siDouble = SI_DoubleVal(1.0);
235 uint64_t longHashCode = SIValue_HashCode(siInt64);
236 uint64_t boolHashCode = SIValue_HashCode(siDouble);
237 TEST_ASSERT(longHashCode == boolHashCode);
238}
239
240// Test for entities with same id, different types
241void test_edgeAndNode() {

Callers

nothing calls this directly

Calls 3

SI_LongValFunction · 0.85
SI_DoubleValFunction · 0.85
SIValue_HashCodeFunction · 0.85

Tested by

no test coverage detected