From 6bcf0998c0b4111cadb9f0d58454266d41fd758b Mon Sep 17 00:00:00 2001 From: Jim Posen Date: Mon, 27 Aug 2018 18:44:43 -0700 Subject: [PATCH] test: Unit tests for block index filter. --- src/Makefile.test.include | 1 + src/test/blockfilter_index_tests.cpp | 150 +++++++++++++++++++++++++++ 2 files changed, 151 insertions(+) create mode 100644 src/test/blockfilter_index_tests.cpp diff --git a/src/Makefile.test.include b/src/Makefile.test.include index a6e07856160..fd7591563f4 100644 --- a/src/Makefile.test.include +++ b/src/Makefile.test.include @@ -92,6 +92,7 @@ BITCOIN_TESTS =\ test/blockchain_tests.cpp \ test/blockencodings_tests.cpp \ test/blockfilter_tests.cpp \ + test/blockfilter_index_tests.cpp \ test/bloom_tests.cpp \ test/bswap_tests.cpp \ test/checkqueue_tests.cpp \ diff --git a/src/test/blockfilter_index_tests.cpp b/src/test/blockfilter_index_tests.cpp new file mode 100644 index 00000000000..5d2c1f11398 --- /dev/null +++ b/src/test/blockfilter_index_tests.cpp @@ -0,0 +1,150 @@ +// Copyright (c) 2017-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 +#include +#include +#include +#include