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

Function test_peer_write

tests/fuzz/fuzz-open_channel.c:232–240  ·  view source on GitHub ↗

These have the same definitions as their original definitions. We reiterate * these here because we want them to use test_sync_write and test_sync_read. */

Source from the content-addressed store, hash-verified

230 * these here because we want them to use test_sync_write and test_sync_read.
231 */
232static void test_peer_write(struct per_peer_state *pps, const void *msg TAKES)
233{
234 /* Abort the run when called by `negotiation_aborted`. */
235 if (is_peer_error(tmpctx, msg))
236 longjmp(fuzz_env, 1);
237
238 status_peer_io(LOG_IO_OUT, NULL, msg);
239 test_sync_write(pps->peer_fd, msg);
240}
241
242static u8 *test_peer_read(const tal_t *ctx, struct per_peer_state *pps)
243{

Callers

nothing calls this directly

Calls 3

is_peer_errorFunction · 0.85
test_sync_writeFunction · 0.85
status_peer_ioFunction · 0.50

Tested by

no test coverage detected