Bitcoin Core 31.99.0
P2P Digital Currency
main.cpp
Go to the documentation of this file.
1// Copyright (c) 2011-present The Bitcoin Core developers
2// Distributed under the MIT software license, see the accompanying
3// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
8#define BOOST_TEST_MODULE Bitcoin Core Test Suite
9
10#include <boost/test/included/unit_test.hpp>
11
13
14#include <functional>
15#include <iostream>
16
23const std::function<std::vector<const char*>()> G_TEST_COMMAND_LINE_ARGUMENTS = []() {
24 std::vector<const char*> args;
25 for (int i = 1; i < boost::unit_test::framework::master_test_suite().argc; ++i) {
26 args.push_back(boost::unit_test::framework::master_test_suite().argv[i]);
27 }
28 return args;
29};
30
34const std::function<std::string()> G_TEST_GET_FULL_NAME = []() {
35 return boost::unit_test::framework::current_test_case().full_name();
36};
ArgsManager & args
Definition: bitcoind.cpp:278
const std::function< std::string()> G_TEST_GET_FULL_NAME
Retrieve the unit test name.
Definition: main.cpp:20
const std::function< std::vector< const char * >()> G_TEST_COMMAND_LINE_ARGUMENTS
Retrieve the command line arguments from boost.
Definition: main.cpp:23