diff options
author | fanquake <fanquake@gmail.com> | 2020-04-06 09:37:13 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2020-04-06 09:48:21 +0800 |
commit | 516ebe8a62de1906f8be9c4a144ea5753678eb4f (patch) | |
tree | 2446c31854025ee4471731ae1cb1411e85fc47e4 /src/test/gen/crypto_gen.cpp | |
parent | cf21293ef7fd304efb0843abeb17adc6159ca927 (diff) | |
parent | 9e071b00898aedd9632f105a22d976dc6dbc84b1 (diff) | |
download | bitcoin-516ebe8a62de1906f8be9c4a144ea5753678eb4f.tar.xz |
Merge #18514: test: remove rapidcheck integration and tests
9e071b00898aedd9632f105a22d976dc6dbc84b1 test: remove rapidcheck integration and tests (fanquake)
Pull request description:
Whilst the property tests are interesting, ultimately [rapidcheck](https://github.com/emil-e/rapidcheck) integration in this repository has not gained much traction. We have a limited number of tests, and they are rarely (if ever) run. Have discussed this with Chris Stewart.
ACKs for top commit:
practicalswift:
ACK 9e071b00898aedd9632f105a22d976dc6dbc84b1
Tree-SHA512: d0c12af3163382eee8413da420c63e39265a7b700709a05d518445832d45e049aed9508e32524db5228fe3ac114609a00b7bb890be047c07032e44a5ef4611e9
Diffstat (limited to 'src/test/gen/crypto_gen.cpp')
-rw-r--r-- | src/test/gen/crypto_gen.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/test/gen/crypto_gen.cpp b/src/test/gen/crypto_gen.cpp deleted file mode 100644 index ca8c65806f..0000000000 --- a/src/test/gen/crypto_gen.cpp +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) 2018 The Bitcoin Core developers -// Distributed under the MIT software license, see the accompanying -// file COPYING or http://www.opensource.org/licenses/mit-license.php. -#include <test/gen/crypto_gen.h> - -#include <key.h> - -#include <rapidcheck/gen/Arbitrary.h> -#include <rapidcheck/Gen.h> -#include <rapidcheck/gen/Predicate.h> -#include <rapidcheck/gen/Container.h> - -/** Generates 1 to 20 keys for OP_CHECKMULTISIG */ -rc::Gen<std::vector<CKey>> MultisigKeys() -{ - return rc::gen::suchThat(rc::gen::arbitrary<std::vector<CKey>>(), [](const std::vector<CKey>& keys) { - return keys.size() >= 1 && keys.size() <= 15; - }); -}; |