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

Function _fake_graph_context

tests/unit/test_query_graph.c:22–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20#include "acutest.h"
21
22static void _fake_graph_context() {
23 TEST_ASSERT(QueryCtx_Init());
24 GraphContext *gc = (GraphContext *)calloc(1, sizeof(GraphContext));
25 QueryCtx_SetGraphCtx(gc);
26}
27
28void setup() {
29 Alloc_Reset();

Callers 1

setupFunction · 0.70

Calls 2

QueryCtx_InitFunction · 0.85
QueryCtx_SetGraphCtxFunction · 0.85

Tested by

no test coverage detected