Index of /pub/mirrors/btcbase.org/patches/genesis/hunk/bitcoin/src/test

Icon  Name                    Last modified      Size  Description
[PARENTDIR] Parent Directory - [TXT] Checkpoints_tests.cp..> 2020-10-16 14:04 7.4K [TXT] DoS_tests.cpp.html 2020-10-16 14:04 19K [TXT] base58_tests.cpp.html 2020-10-16 14:05 14K [TXT] base64_tests.cpp.html 2020-10-16 14:03 5.3K [TXT] miner_tests.cpp.html 2020-10-16 14:04 7.0K [TXT] script_tests.cpp.html 2020-10-16 14:04 27K [TXT] test_bitcoin.cpp.html 2020-10-16 14:04 5.5K [TXT] transaction_tests.cp..> 2020-10-16 14:03 7.6K [TXT] uint160_tests.cpp.html 2020-10-16 14:04 4.9K [TXT] uint256_tests.cpp.html 2020-10-16 14:05 4.9K [TXT] util_tests.cpp.html 2020-10-16 14:05 35K
v
-
+ 8DC10490739FE1FFF46B553121622B8AC1F7B6B90210A56900DDE6B85F44FED7287DCC2F773A8D64ADED5C1B242F587132D3BC1E37CE21C5FFF315AF913B8FC1
bitcoin/src/test/README
(0 . 0)(1 . 21)
21208 The sources in this directory are unit test cases. Boost includes a
21209 unit testing framework, and since bitcoin already uses boost, it makes
21210 sense to simply use this framework rather than require developers to
21211 configure some other framework (we want as few impediments to creating
21212 unit tests as possible).
21213
21214 The build system is setup to compile an executable called "test_bitcoin"
21215 that runs all of the unit tests. The main source file is called
21216 test_bitcoin.cpp, which simply includes other files that contain the
21217 actual unit tests (outside of a couple required preprocessor
21218 directives). The pattern is to create one test file for each class or
21219 source file for which you want to create unit tests. The file naming
21220 convention is "<source_filename>_tests.cpp" and such files should wrap
21221 their tests in a test suite called "<source_filename>_tests". For an
21222 examples of this pattern, examine uint160_tests.cpp and
21223 uint256_tests.cpp.
21224
21225 For further reading, I found the following website to be helpful in
21226 explaining how the boost unit test framework works:
21227
21228 http://www.alittlemadness.com/2009/03/31/c-unit-testing-with-boosttest/