Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
Jorge Timón 935bd0a447 Chainparams: Refactor: Decouple main::GetBlockValue() from Params() [renamed GetBlockSubsidy] vor 6 Jahren
..
data Add more script edge condition tests. vor 6 Jahren
Checkpoints_tests.cpp checkpoints: Decouple checkpoints from Params vor 6 Jahren
DoS_tests.cpp Reinitialize state in between individual unit tests. vor 6 Jahren
Makefile build: add stub makefiles for easier subdir builds vor 7 Jahren
README.md Removed LevelDB changes vor 7 Jahren
accounting_tests.cpp [Move Only] Move wallet related things to src/wallet/ vor 6 Jahren
alert_tests.cpp Chainparams: Decouple CAlert from CChainParams vor 6 Jahren
allocator_tests.cpp allocators: split allocators and pagelocker vor 6 Jahren
arith_uint256_tests.cpp tests: add a BasicTestingSetup and apply to all tests vor 6 Jahren
base32_tests.cpp tests: add a BasicTestingSetup and apply to all tests vor 6 Jahren
base58_tests.cpp tests: add a BasicTestingSetup and apply to all tests vor 6 Jahren
base64_tests.cpp tests: add a BasicTestingSetup and apply to all tests vor 6 Jahren
bctest.py Remove references to X11 licence vor 6 Jahren
bignum.h Remove whitespaces before double colon in errors and logs vor 6 Jahren
bip32_tests.cpp fix and enable bip32 unit test vor 6 Jahren
bitcoin-util-test.py Remove references to X11 licence vor 6 Jahren
bloom_tests.cpp Rolling bloom filter class vor 6 Jahren
buildenv.py.in tests: fix python test-runner for windows vor 6 Jahren
checkblock_tests.cpp tests: add a BasicTestingSetup and apply to all tests vor 6 Jahren
coins_tests.cpp Keep track of memory usage in CCoinsViewCache vor 6 Jahren
compress_tests.cpp tests: add a BasicTestingSetup and apply to all tests vor 6 Jahren
crypto_tests.cpp tests: add a BasicTestingSetup and apply to all tests vor 6 Jahren
getarg_tests.cpp tests: add a BasicTestingSetup and apply to all tests vor 6 Jahren
hash_tests.cpp tests: add a BasicTestingSetup and apply to all tests vor 6 Jahren
key_tests.cpp tests: add a BasicTestingSetup and apply to all tests vor 6 Jahren
main_tests.cpp Chainparams: Refactor: Decouple main::GetBlockValue() from Params() [renamed GetBlockSubsidy] vor 6 Jahren
mempool_tests.cpp Keep mempool consistent during block-reorgs vor 6 Jahren
miner_tests.cpp checkpoints: move the checkpoints enable boolean into main vor 6 Jahren
mruset_tests.cpp Better mruset unit test vor 6 Jahren
multisig_tests.cpp Merge pull request #5745 vor 6 Jahren
netbase_tests.cpp tests: add a BasicTestingSetup and apply to all tests vor 6 Jahren
pmt_tests.cpp tests: add a BasicTestingSetup and apply to all tests vor 6 Jahren
policyestimator_tests.cpp Create new BlockPolicyEstimator for fee estimates vor 6 Jahren
pow_tests.cpp Use equivalent PoW for non-main-chain requests vor 6 Jahren
rpc_tests.cpp Reinitialize state in between individual unit tests. vor 6 Jahren
rpc_wallet_tests.cpp Includes: Do not include main.h from any other header vor 6 Jahren
sanity_tests.cpp tests: add a BasicTestingSetup and apply to all tests vor 6 Jahren
scheduler_tests.cpp CScheduler unit test vor 6 Jahren
script_P2SH_tests.cpp Merge pull request #5745 vor 6 Jahren
script_tests.cpp tests: add a BasicTestingSetup and apply to all tests vor 6 Jahren
scriptnum_tests.cpp tests: add a BasicTestingSetup and apply to all tests vor 6 Jahren
serialize_tests.cpp tests: add a BasicTestingSetup and apply to all tests vor 6 Jahren
sighash_tests.cpp tests: add a BasicTestingSetup and apply to all tests vor 6 Jahren
sigopcount_tests.cpp tests: add a BasicTestingSetup and apply to all tests vor 6 Jahren
skiplist_tests.cpp tests: add a BasicTestingSetup and apply to all tests vor 6 Jahren
test_bitcoin.cpp Merge pull request #6047 vor 6 Jahren
test_bitcoin.h tests: add a BasicTestingSetup and apply to all tests vor 6 Jahren
timedata_tests.cpp tests: add a BasicTestingSetup and apply to all tests vor 6 Jahren
transaction_tests.cpp tests: add a BasicTestingSetup and apply to all tests vor 6 Jahren
uint256_tests.cpp tests: add a BasicTestingSetup and apply to all tests vor 6 Jahren
univalue_tests.cpp tests: add a BasicTestingSetup and apply to all tests vor 6 Jahren
util_tests.cpp tests: add a BasicTestingSetup and apply to all tests vor 6 Jahren

README.md

Notes

The sources in this directory are unit test cases. Boost includes a unit testing framework, and since bitcoin 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_bitcoin” 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 “_tests.cpp” and such files should wrap their tests in a test suite called “_tests”. For an examples of this pattern, examine uint160_tests.cpp and uint256_tests.cpp.

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/.