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

Function test_graphConstruction

tests/unit/test_graph.c:250–257  ·  view source on GitHub ↗

Tests node and edge creation.

Source from the content-addressed store, hash-verified

248
249// Tests node and edge creation.
250void test_graphConstruction() {
251 size_t node_count = GRAPH_DEFAULT_NODE_CAP / 2;
252 Graph *g = Graph_New(node_count, node_count);
253 Graph_AcquireWriteLock(g);
254 _test_node_creation(g, node_count);
255 Graph_ReleaseLock(g);
256 Graph_Free(g);
257}
258
259void test_removeNodes() {
260 // Construct graph.

Callers

nothing calls this directly

Calls 5

Graph_NewFunction · 0.85
Graph_AcquireWriteLockFunction · 0.85
_test_node_creationFunction · 0.85
Graph_ReleaseLockFunction · 0.85
Graph_FreeFunction · 0.85

Tested by

no test coverage detected