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

Function test_edgeAndNode

tests/unit/test_value.c:241–254  ·  view source on GitHub ↗

Test for entities with same id, different types

Source from the content-addressed store, hash-verified

239
240// Test for entities with same id, different types
241void test_edgeAndNode() {
242 AttributeSet attr;
243
244 Edge e0;
245 e0.id = 0;
246 e0.attributes = &attr;
247 SIValue edge = SI_Edge(&e0);
248
249 Node n0;
250 n0.attributes = &attr;
251 SIValue node = SI_Node(&n0);
252
253 TEST_ASSERT(SIValue_HashCode(node) != SIValue_HashCode(edge));
254}
255
256void test_set() {
257 set *set = Set_New();

Callers

nothing calls this directly

Calls 3

SI_EdgeFunction · 0.85
SI_NodeFunction · 0.85
SIValue_HashCodeFunction · 0.85

Tested by

no test coverage detected