| 90 | } |
| 91 | |
| 92 | void test_noPaths() { |
| 93 | Graph *g = BuildGraph(); |
| 94 | |
| 95 | NodeID src_id = 0; |
| 96 | unsigned int minLen = 999; |
| 97 | unsigned int maxLen = minLen + 1; |
| 98 | |
| 99 | Node src; |
| 100 | Graph_GetNode(g, src_id, &src); |
| 101 | |
| 102 | int relationships[] = {GRAPH_NO_RELATION}; |
| 103 | AllPathsCtx *ctx = AllPathsCtx_New(&src, NULL, g, relationships, 1, |
| 104 | GRAPH_EDGE_DIR_OUTGOING, minLen, maxLen, NULL, NULL, 0, false); |
| 105 | Path *p = AllPathsCtx_NextPath(ctx); |
| 106 | |
| 107 | TEST_ASSERT(p == NULL); |
| 108 | |
| 109 | AllPathsCtx_Free(ctx); |
| 110 | Graph_Free(g); |
| 111 | } |
| 112 | |
| 113 | void test_longest_Paths() { |
| 114 | Graph *g = BuildGraph(); |
nothing calls this directly
no test coverage detected