cln/common/test
Rusty Russell 68f6a1a1dc common/jsonrpc_io: helper routines for reading JSON from sockets.
The efficient way to do this is to use membuf, which handles the buffer
control (only using memmove when necessary).  We have multiple places
where we opencoded this, some of which did not use membuf at all.

So now we create common infrastructure.  I tried making it a single
function but the various users are quite different, so instead I opted
for a toolbox approach.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2025-10-24 11:28:57 +10:30
..
Makefile common/jsonrpc_io: helper routines for reading JSON from sockets. 2025-10-24 11:28:57 +10:30
onion-test-v0.json sphinx: Introduce a runtest command to the onion tool 2019-07-30 02:14:49 +00:00
run-amount.c common/amount: add ceil division operation on msat 2025-07-19 10:09:17 +09:30
run-base64.c common: add amount_feerate helper. 2023-11-01 14:11:28 +10:30
run-bigsize.c common: mvt_tag parsing routine. 2025-08-14 19:49:09 +09:30
run-blindedpath_enctlv.c BOLTs: update which renames blinding terminology. 2024-10-16 07:14:32 +10:30
run-blindedpath_onion.c common: provide readable explanation when onion payload is invalid. 2024-11-20 12:29:27 +01:00
run-bolt11.c BOLT11: Make payment secret field ('s') mandatory 2025-07-07 11:18:37 +09:30
run-bolt12-encode-test.c BOLT12: remove -offers from bolt12 quotes, update them. 2025-02-11 20:19:01 -06:00
run-bolt12-format-string-test.c global: remove unnecessary includes from headers. 2025-10-23 06:44:04 +10:30
run-bolt12-offer-decode.c common: mvt_tag parsing routine. 2025-08-14 19:49:09 +09:30
run-bolt12_decode.c global: remove unnecessary includes from C files. 2025-10-23 06:44:04 +10:30
run-bolt12_merkle-json.c global: remove unnecessary includes from headers. 2025-10-23 06:44:04 +10:30
run-bolt12_merkle.c BOLT12: remove -offers from bolt12 quotes, update them. 2025-02-11 20:19:01 -06:00
run-bolt12_period.c common: mvt_tag parsing routine. 2025-08-14 19:49:09 +09:30
run-channel_type.c channel: Add test for channel state max 2025-08-07 16:13:20 +09:30
run-codex32.c global: remove unnecessary includes from C files. 2025-10-23 06:44:04 +10:30
run-coin_mvt.c common: reintroduce "ignored" primary tag. 2025-08-28 13:41:44 +09:30
run-cryptomsg.c global: remove unnecessary includes from headers. 2025-10-23 06:44:04 +10:30
run-deprecation.c Makefile: add CLN_NEXT_VERSION, functions encoding deprecation schedule. 2024-01-26 10:30:22 +10:30
run-derive_basepoints.c common: add amount_feerate helper. 2023-11-01 14:11:28 +10:30
run-features.c common: add json_dup_contents() to duplicate toks and buffer. 2025-10-24 11:28:57 +10:30
run-gossmap-fp16.c common: remove type_to_string files altogther. 2024-03-20 13:51:48 +10:30
run-gossmap_canned.c unit tests: update all the gossmaps to have the GOSSIP_STORE_COMPLETED_BIT set. 2025-10-01 13:29:33 +09:30
run-gossmap_local.c unit tests: update all the gossmaps to have the GOSSIP_STORE_COMPLETED_BIT set. 2025-10-01 13:29:33 +09:30
run-htable.c ccan/htable: update to explicit DUPS/NODUPS types. 2025-01-21 09:18:25 +10:30
run-ip_port_parsing.c common: add amount_feerate helper. 2023-11-01 14:11:28 +10:30
run-json.c global: remove unnecessary includes from headers. 2025-10-23 06:44:04 +10:30
run-json_filter.c common: round out the short_channel_id_dir JSON routines. 2024-10-04 11:27:53 +09:30
run-json_remove.c common: round out the short_channel_id_dir JSON routines. 2024-10-04 11:27:53 +09:30
run-json_scan.c global: remove unnecessary includes from C files. 2025-10-23 06:44:04 +10:30
run-json_stream-filter.c common: move now-enlarged command_fail_badparam into its own source file. 2024-06-25 08:47:50 +09:30
run-jsonrpc_io.c common/jsonrpc_io: helper routines for reading JSON from sockets. 2025-10-24 11:28:57 +10:30
run-key_derive.c common: remove type_to_string files altogther. 2024-03-20 13:51:48 +10:30
run-lease_rates.c tools/gen: Always return bool! 2022-07-14 12:24:48 -05:00
run-marginal_feerate.c common: add unit test for marginal feerate function. 2024-05-13 14:06:45 -05:00
run-onion-message-test.c common: sphinx_path_new to take explicit len. 2024-11-18 11:03:26 +10:30
run-onion-test-vector.c common: mvt_tag parsing routine. 2025-08-14 19:49:09 +09:30
run-param.c common: move now-enlarged command_fail_badparam into its own source file. 2024-06-25 08:47:50 +09:30
run-psbt_diff.c PSBT: Add audi_psbt routine 2025-05-13 14:52:15 +09:30
run-route-infloop.c gossmap: add (and use) logging hook. 2025-02-11 15:11:47 -06:00
run-route-specific.c unit tests: update all the gossmaps to have the GOSSIP_STORE_COMPLETED_BIT set. 2025-10-01 13:29:33 +09:30
run-route.c unit tests: update all the gossmaps to have the GOSSIP_STORE_COMPLETED_BIT set. 2025-10-01 13:29:33 +09:30
run-route_blinding_onion_test.c common: mvt_tag parsing routine. 2025-08-14 19:49:09 +09:30
run-route_blinding_test.c wallet: generate fixup chainmoves and channelmoves when first starting. 2025-08-19 13:37:50 +09:30
run-shutdown_scriptpubkey.c common: implement op_return test. 2025-03-18 14:30:58 +10:30
run-sphinx-xor_cipher_stream.c common: translate legacy onion payloads. 2024-05-29 12:40:01 -05:00
run-sphinx.c common: provide readable explanation when onion payload is invalid. 2024-11-20 12:29:27 +01:00
run-splice_script.c common: mvt_tag parsing routine. 2025-08-14 19:49:09 +09:30
run-tal_arr_randomize.c common: add amount_feerate helper. 2023-11-01 14:11:28 +10:30
run-tlv_span.c common: add amount_feerate helper. 2023-11-01 14:11:28 +10:30
run-tlv_unknown.c common: maintain unknown fields when unmarshalling/marshalling TLVs 2024-07-23 09:54:47 +09:30
run-trace.c common/test/run-trace: increase iterations for trivial benchmarking. 2025-04-23 13:45:18 +09:30
run-version.c comm: make sure that our version check is reliable 2023-01-17 14:15:24 +10:30
run-wireaddr.c common/test: Add a test to trigger the bug 2025-09-22 10:23:13 +09:30