fix: add a workaround for RPC getmerkleblocks, debug, coinjoinsalt, voteraw

We indeed doesn't have functional tests for them yet, but this linter will help to avoid
adding new RPCs without tests
This commit is contained in:
Konstantin Akimov 2024-12-12 18:36:09 +07:00
parent f0decc8790
commit 2e509b96c4
No known key found for this signature in database
GPG Key ID: 2176C4A5D01EA524

View File

@ -891,6 +891,14 @@ class RPCCoverage():
# Consider RPC generate covered, because it is overloaded in
# test_framework/test_node.py and not seen by the coverage check.
covered_cmds = set({'generate'})
# TODO: implement functional tests for coinjoinsalt
covered_cmds.add('coinjoinsalt')
# TODO: implement functional tests for voteraw
covered_cmds.add('voteraw')
# TODO: implement functional tests for getmerkleblocks
covered_cmds.add('getmerkleblocks')
# TODO: drop it with v23+: remove `debug` in favour of `logging`
covered_cmds.add('debug')
if not os.path.isfile(coverage_ref_filename):
raise RuntimeError("No coverage reference found")