MCPcopy Create free account
hub / github.com/ElementsProject/lightning / test_socket

Function test_socket

cli/test/run-human-mode.c:38–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36/* AUTOGENERATED MOCKS END */
37
38int test_socket(int domain UNUSED, int type UNUSED, int protocol UNUSED)
39{
40 /* We give a real fd, as it writes to it */
41 return open("/dev/null", O_WRONLY);
42}
43
44int test_connect(int sockfd UNUSED, const struct sockaddr *addr UNUSED,
45 socklen_t addrlen UNUSED)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected