Bitcoin Core 32.1.0
P2P Digital Currency
Loading...
Searching...
No Matches
rpc_tests.cpp File Reference
#include <core_io.h>
#include <interfaces/chain.h>
#include <node/context.h>
#include <rpc/blockchain.h>
#include <rpc/client.h>
#include <rpc/server.h>
#include <rpc/util.h>
#include <test/util/common.h>
#include <test/util/setup_common.h>
#include <test/util/time.h>
#include <univalue.h>
#include <any>
#include <string_view>
#include <boost/test/unit_test.hpp>
Include dependency graph for rpc_tests.cpp:

Go to the source code of this file.

Classes

class  HasJSON
class  RPCTestingSetup

Functions

static UniValue JSON (std::string_view json)
 BOOST_AUTO_TEST_CASE (rpc_namedparams)
 BOOST_AUTO_TEST_CASE (rpc_namedonlyparams)
 BOOST_AUTO_TEST_CASE (rpc_remove_command_cleans_up_empty_entry)
 BOOST_AUTO_TEST_CASE (rpc_rawparams)
 BOOST_AUTO_TEST_CASE (rpc_togglenetwork)
 BOOST_AUTO_TEST_CASE (rpc_rawsign)
 BOOST_AUTO_TEST_CASE (rpc_createraw_op_return)
 BOOST_AUTO_TEST_CASE (rpc_format_monetary_values)
static UniValue ValueFromString (const std::string &str) noexcept
 BOOST_AUTO_TEST_CASE (rpc_parse_monetary_values)
 BOOST_AUTO_TEST_CASE (rpc_ban)
 BOOST_AUTO_TEST_CASE (rpc_convert_values_generatetoaddress)
 BOOST_AUTO_TEST_CASE (rpc_getblockstats_calculate_percentiles_by_weight)
 BOOST_AUTO_TEST_CASE (check_dup_param_names)
 BOOST_AUTO_TEST_CASE (help_example)
static void CheckRpc (const std::vector< RPCArg > &params, const UniValue &args, RPCMethod::RPCMethodImpl test_impl)
 BOOST_AUTO_TEST_CASE (rpc_arg_helper)
std::vector< std::string > SplitString (std::string_view str, char sep)

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/15]

BOOST_AUTO_TEST_CASE ( check_dup_param_names )

Definition at line 542 of file rpc_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/15]

BOOST_AUTO_TEST_CASE ( help_example )

Definition at line 591 of file rpc_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/15]

BOOST_AUTO_TEST_CASE ( rpc_arg_helper )

Parameters with which the RPCMethod is instantiated

Check that self.Arg returns the same value as the request.params accessors

Definition at line 636 of file rpc_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [4/15]

BOOST_AUTO_TEST_CASE ( rpc_ban )

Definition at line 350 of file rpc_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [5/15]

BOOST_AUTO_TEST_CASE ( rpc_convert_values_generatetoaddress )

Definition at line 439 of file rpc_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [6/15]

BOOST_AUTO_TEST_CASE ( rpc_createraw_op_return )

Definition at line 248 of file rpc_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [7/15]

BOOST_AUTO_TEST_CASE ( rpc_format_monetary_values )

Definition at line 263 of file rpc_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [8/15]

BOOST_AUTO_TEST_CASE ( rpc_getblockstats_calculate_percentiles_by_weight )

Definition at line 462 of file rpc_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [9/15]

BOOST_AUTO_TEST_CASE ( rpc_namedonlyparams )

Definition at line 117 of file rpc_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [10/15]

BOOST_AUTO_TEST_CASE ( rpc_namedparams )

Definition at line 90 of file rpc_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [11/15]

BOOST_AUTO_TEST_CASE ( rpc_parse_monetary_values )

Definition at line 315 of file rpc_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [12/15]

BOOST_AUTO_TEST_CASE ( rpc_rawparams )

Definition at line 172 of file rpc_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [13/15]

BOOST_AUTO_TEST_CASE ( rpc_rawsign )

Definition at line 229 of file rpc_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [14/15]

BOOST_AUTO_TEST_CASE ( rpc_remove_command_cleans_up_empty_entry )

Definition at line 139 of file rpc_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [15/15]

BOOST_AUTO_TEST_CASE ( rpc_togglenetwork )

Definition at line 207 of file rpc_tests.cpp.

Here is the call graph for this function:

◆ CheckRpc()

void CheckRpc ( const std::vector< RPCArg > & params,
const UniValue & args,
RPCMethod::RPCMethodImpl test_impl )
static

Definition at line 626 of file rpc_tests.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ JSON()

UniValue JSON ( std::string_view json)
static

Definition at line 25 of file rpc_tests.cpp.

Here is the call graph for this function:

◆ SplitString()

std::vector< std::string > util::SplitString ( std::string_view str,
char sep )
inlinenodiscard

Definition at line 153 of file string.h.

Here is the caller graph for this function:

◆ ValueFromString()

UniValue ValueFromString ( const std::string & str)
staticnoexcept

Definition at line 308 of file rpc_tests.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: