core-lightning/common/test
Rusty Russell 93bf7c4839 param: make command sinks (fail/success) return a special type.
These routines free the 'struct command': a common coding error is not
to return immediately.

To catch this, we make them return a non-NULL 'struct command_result
*', and we're going to make the command handlers return the same (to
encourage 'return command_fail(...)'-style usage).

We also provide two sources for external use:
1. command_param_failed() when param() fails.
2. command_its_complicated() for some complex cases.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-12-20 03:22:32 +00:00
..
Makefile common/test: add spec tests for bolt11. 2017-11-24 13:22:18 +01:00
run-bolt11.c Call wally_init(0) on startup to enabled assembly-optimised SHA-256 2018-11-21 01:18:24 +00:00
run-cryptomsg.c common/cryptomsg: remove unused async routines. 2018-09-28 04:14:28 +00:00
run-derive_basepoints.c Call wally_init(0) on startup to enabled assembly-optimised SHA-256 2018-11-21 01:18:24 +00:00
run-features.c Call wally_init(0) on startup to enabled assembly-optimised SHA-256 2018-11-21 01:18:24 +00:00
run-funding_tx.c signature: wrap almost all signatures in struct bitcoin_signature. 2018-12-06 23:11:51 +01:00
run-ip_port_parsing.c Tor: don't do seed queries if we're supposed to always use proxy. 2018-05-10 02:28:44 +00:00
run-json.c common/json: restore json_delve() for simple plugin parsing. 2018-12-20 03:22:32 +00:00
run-json_escaped.c Move json and param core functionality into common, for plugins. 2018-12-10 00:00:50 +00:00
run-json_remove.c common/json: add context arg to json_parse_input. 2018-12-10 00:00:50 +00:00
run-key_derive.c lightningd/test: move some tests to common/ and channeld/ 2018-12-06 23:11:51 +01:00
run-lock.c common: Add a test for io_lock 2018-10-11 01:43:55 +00:00
run-param.c param: make command sinks (fail/success) return a special type. 2018-12-20 03:22:32 +00:00
run-sphinx.c Don't advertise features we don't have in run-sphinx 2018-07-31 16:30:56 +02:00