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

Function setup

tests/unit/test_graph.c:207–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207void setup() {
208 // Use the malloc family for allocations
209 Alloc_Reset();
210
211 // Initialize GraphBLAS.
212 GrB_init(GrB_NONBLOCKING);
213
214 GxB_Global_Option_set(GxB_FORMAT, GxB_BY_ROW); // all matrices in CSR format
215 GxB_Global_Option_set(GxB_HYPER_SWITCH, GxB_NEVER_HYPER); // matrices are never hypersparse
216 srand(time(NULL));
217}
218
219void tearDown() {
220 GrB_finalize();

Callers

nothing calls this directly

Calls 3

Alloc_ResetFunction · 0.85
GrB_initFunction · 0.85
GxB_Global_Option_setFunction · 0.85

Tested by

no test coverage detected