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

Function test_field

plugins/offers_inv_hook.c:102–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100 test_field_eq(cmd_, i_, i_->inv->fld_, i_->offer->fld_, #fld_)
101
102static struct command_result *
103test_field(struct command *cmd,
104 const struct inv *inv,
105 bool test, const char *fieldname, const char *what)
106{
107 if (!test)
108 return fail_inv(cmd, inv, "%s %s", what, fieldname);
109 return NULL;
110}
111
112static struct command_result *
113test_field_eq(struct command *cmd,

Callers

nothing calls this directly

Calls 1

fail_invFunction · 0.85

Tested by

no test coverage detected