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

Function setup

tests/unit/test_rg_matrix.c:40–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38#define DM_NOT_EMPTY() MATRIX_NOT_EMPTY(DM)
39
40void setup() {
41 // use the malloc family for allocations
42 Alloc_Reset();
43
44 // initialize GraphBLAS
45 GrB_init(GrB_NONBLOCKING);
46
47 // all matrices in CSR format
48 GxB_Global_Option_set(GxB_FORMAT, GxB_BY_ROW);
49
50 // set delta matrix flush threshold
51 Config_Option_set(Config_DELTA_MAX_PENDING_CHANGES, "10000", NULL);
52}
53
54void tearDown() {
55 GrB_finalize();

Callers

nothing calls this directly

Calls 4

Alloc_ResetFunction · 0.85
GrB_initFunction · 0.85
GxB_Global_Option_setFunction · 0.85
Config_Option_setFunction · 0.85

Tested by

no test coverage detected