Changeset View
Changeset View
Standalone View
Standalone View
src/test/sigcheckcount_tests.cpp
// Copyright (c) 2019-2020 The Bitcoin developers | // Copyright (c) 2019-2020 The Bitcoin developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include <policy/policy.h> | #include <policy/policy.h> | ||||
#include <pubkey.h> | #include <pubkey.h> | ||||
#include <script/interpreter.h> | #include <script/interpreter.h> | ||||
#include <script/script_error.h> | #include <script/script_error.h> | ||||
#include <test/util/setup_common.h> | #include <test/util/setup_common.h> | ||||
#include <boost/test/unit_test.hpp> | #include <boost/test/unit_test.hpp> | ||||
// to be removed once Boost 1.59+ is minimum version. | |||||
#ifndef BOOST_TEST_CONTEXT | |||||
#define BOOST_TEST_CONTEXT(x) | |||||
#endif | |||||
typedef std::vector<uint8_t> valtype; | typedef std::vector<uint8_t> valtype; | ||||
typedef std::vector<valtype> stacktype; | typedef std::vector<valtype> stacktype; | ||||
BOOST_FIXTURE_TEST_SUITE(sigcheckcount_tests, BasicTestingSetup) | BOOST_FIXTURE_TEST_SUITE(sigcheckcount_tests, BasicTestingSetup) | ||||
/** | /** | ||||
* Stand-in for proper signature check, in the absence of a proper | * Stand-in for proper signature check, in the absence of a proper | ||||
* transaction context. We will use a dummy signature checker with | * transaction context. We will use a dummy signature checker with | ||||
▲ Show 20 Lines • Show All 336 Lines • Show Last 20 Lines |