| 8 | #include <stdio.h> |
| 9 | |
| 10 | static 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 | |
| 22 | TEST(infrascan_http_route_literal_guard_rejects_filesystem_paths) { |
| 23 | ASSERT_FALSE(cbm_service_pattern_is_http_route_literal("/etc/crio/crio.conf", "requests.get")); |
no test coverage detected