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

Function capture_end

tests/test_log.c:45–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45static const char *capture_end(void) {
46 fflush(stderr);
47 dup2(saved_stderr, STDERR_FILENO);
48 close(saved_stderr);
49 ssize_t n = read(pipe_fds[0], log_buf, sizeof(log_buf) - 1);
50 close(pipe_fds[0]);
51 if (n < 0)
52 n = 0;
53 log_buf[n] = '\0';
54 return log_buf;
55}
56
57TEST(log_level_default) {
58 /* Default level should be INFO */

Callers 1

test_log.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected