FLO-wallet-core/src/test
Ray Engelking d5716ecbd8 txComment updated to floData
(cherry picked from commit 7aa6e66)
Close Pull #17 - Close Issue #11
2018-02-08 13:24:07 -08:00
..
data sighash tests without OMIT_TX_COMMENT set 2018-01-25 16:18:10 -08:00
addrman_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
allocator_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
amount_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
arith_uint256_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
base32_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
base58_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
base64_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
bip32_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
blockencodings_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
bloom_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
bswap_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
checkqueue_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
coins_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
compress_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
crypto_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
cuckoocache_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
dbwrapper_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
DoS_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
getarg_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
hash_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
key_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
limitedmap_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
main_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
Makefile
mempool_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
merkle_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
miner_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
multisig_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
net_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
netbase_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
pmt_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
policyestimator_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
pow_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
prevector_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
raii_event_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
random_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
README.md Test net sync'd fine; still needs new EXT keys 2018-01-11 19:21:07 -05:00
reverselock_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
rpc_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
sanity_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
scheduler_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
script_P2SH_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
script_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
scriptnum10.h copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
scriptnum_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
scrypt_tests.cpp Litecoin: enable support for SSE2 instructions in scrypt via configure --enable-sse2 (#362) 2017-09-19 18:39:26 -07:00
serialize_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
sighash_tests.cpp txComment updated to floData 2018-02-08 13:24:07 -08:00
sigopcount_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
skiplist_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
streams_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
test_bitcoin_fuzzy.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
test_bitcoin_main.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
test_bitcoin.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
test_bitcoin.h copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
testutil.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
testutil.h copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
timedata_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
torcontrol_tests.cpp torcontrol: Handle escapes in Tor QuotedStrings 2017-05-16 18:22:25 +12:00
transaction_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
txvalidationcache_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
uint256_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
univalue_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
util_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00
versionbits_tests.cpp copyright in .cpp, .c, and .h files updated with flo copyright 2018-02-06 23:51:41 -08:00

Notes

The sources in this directory are unit test cases. Boost includes a unit testing framework, and since flo already uses boost, it makes sense to simply use this framework rather than require developers to configure some other framework (we want as few impediments to creating unit tests as possible).

The build system is setup to compile an executable called "test_flo" that runs all of the unit tests. The main source file is called test_bitcoin.cpp, which simply includes other files that contain the actual unit tests (outside of a couple required preprocessor directives). The pattern is to create one test file for each class or source file for which you want to create unit tests. The file naming convention is "<source_filename>_tests.cpp" and such files should wrap their tests in a test suite called "<source_filename>_tests". For an examples of this pattern, examine uint160_tests.cpp and uint256_tests.cpp.

Add the source files to /src/Makefile.test.include to add them to the build.

For further reading, I found the following website to be helpful in explaining how the boost unit test framework works: http://www.alittlemadness.com/2009/03/31/c-unit-testing-with-boosttest/.