MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / has_data_flow

Function has_data_flow

tests/test_infrascan.c:10–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include <stdio.h>
9
10static int has_data_flow(cbm_gbuf_t *gb, int64_t source_id, int64_t target_id) {
11 const cbm_gbuf_edge_t **edges = NULL;
12 int count = 0;
13 cbm_gbuf_find_edges_by_source_type(gb, source_id, "DATA_FLOWS", &edges, &count);
14 for (int i = 0; i < count; i++) {
15 if (edges[i]->target_id == target_id) {
16 return 1;
17 }
18 }
19 return 0;
20}
21
22TEST(infrascan_http_route_literal_guard_rejects_filesystem_paths) {
23 ASSERT_FALSE(cbm_service_pattern_is_http_route_literal("/etc/crio/crio.conf", "requests.get"));

Callers 1

test_infrascan.cFile · 0.85

Calls 1

Tested by

no test coverage detected