#include <common/args.h>
#include <kernel/caches.h>
#include <kernel/context.h>
#include <key.h>
#include <node/caches.h>
#include <node/context.h>
#include <optional>
#include <ostream>
#include <primitives/transaction.h>
#include <pubkey.h>
#include <stdexcept>
#include <test/util/random.h>
#include <util/chaintype.h>
#include <util/check.h>
#include <util/fs.h>
#include <util/signalinterrupt.h>
#include <util/string.h>
#include <util/vector.h>
#include <functional>
#include <type_traits>
#include <vector>
 
Go to the source code of this file.
◆ getBlock13b8a()
- Returns
 - a real block (0000000000013b8ab2cd513b0261a14096412195a72a0c4827d229dcc7e0f7af) with 9 txs. 
 
Definition at line 589 of file setup_common.cpp.
 
 
◆ MakeNoLogFileContext()
template<class T  = const BasicTestingSetup> 
      
 
Make a test setup that has disk access to the debug.log file disabled. 
Can be used in "hot loops", for example fuzzing or benchmarking. 
Definition at line 250 of file setup_common.h.
 
 
◆ operator<<() [1/5]
      
        
          | std::ostream & operator<<  | 
          ( | 
          std::ostream &  | 
          os,  | 
        
        
           | 
           | 
          const arith_uint256 &  | 
          num  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ operator<<() [2/5]
      
        
          | std::ostream & operator<<  | 
          ( | 
          std::ostream &  | 
          os,  | 
        
        
           | 
           | 
          const Txid &  | 
          txid  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ operator<<() [3/5]
      
        
          | std::ostream & operator<<  | 
          ( | 
          std::ostream &  | 
          os,  | 
        
        
           | 
           | 
          const uint160 &  | 
          num  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ operator<<() [4/5]
      
        
          | std::ostream & operator<<  | 
          ( | 
          std::ostream &  | 
          os,  | 
        
        
           | 
           | 
          const uint256 &  | 
          num  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ operator<<() [5/5]
      
        
          | std::ostream & operator<<  | 
          ( | 
          std::ostream &  | 
          os,  | 
        
        
           | 
           | 
          const Wtxid &  | 
          wtxid  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ SetupCommonTestArgs()
Register common test args. 
Shared across binaries that rely on the test framework. 
Definition at line 100 of file setup_common.cpp.
 
 
◆ CENT
◆ G_TEST_COMMAND_LINE_ARGUMENTS
  
  
      
        
          | const std::function<std::vector<const char*>()> G_TEST_COMMAND_LINE_ARGUMENTS | 
         
       
   | 
  
extern   | 
  
 
Retrieve the command line arguments. 
Retrieve the command line arguments.
Allows usage like: test_bitcoin --run_test="net_tests/cnode_listen_port" -- -checkaddrman=1 -printtoconsole=1 which would return ["-checkaddrman=1", "-printtoconsole=1"]. 
Definition at line 36 of file bench.cpp.
 
 
◆ G_TEST_GET_FULL_NAME
  
  
      
        
          | const std::function<std::string()> G_TEST_GET_FULL_NAME | 
         
       
   | 
  
extern   | 
  
 
Retrieve the unit test name. 
Retrieve the unit test name. 
Definition at line 47 of file bench.cpp.
 
 
◆ G_TEST_LOG_FUN
  
  
      
        
          | const std::function<void(const std::string&)> G_TEST_LOG_FUN | 
         
       
   | 
  
extern   | 
  
 
This is connected to the logger. 
Can be used to redirect logs to any other log
This is connected to the logger. 
Definition at line 28 of file bench.cpp.