Skip to content

Commit 5fd864f

Browse files
tests: Rename test suits not following the test suite naming convention
The name of the fixture test suite in `src/test/foo_tests.cpp` should be `foo_tests`.
1 parent 7b4a296 commit 5fd864f

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/test/blockchain_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ void TestDifficulty(uint32_t nbits, double expected_difficulty)
5454
RejectDifficultyMismatch(difficulty, expected_difficulty);
5555
}
5656

57-
BOOST_FIXTURE_TEST_SUITE(blockchain_difficulty_tests, BasicTestingSetup)
57+
BOOST_FIXTURE_TEST_SUITE(blockchain_tests, BasicTestingSetup)
5858

5959
BOOST_AUTO_TEST_CASE(get_difficulty_for_very_low_target)
6060
{

src/test/prevector_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
#include <boost/test/unit_test.hpp>
1515

16-
BOOST_FIXTURE_TEST_SUITE(PrevectorTests, TestingSetup)
16+
BOOST_FIXTURE_TEST_SUITE(prevector_tests, TestingSetup)
1717

1818
template<unsigned int N, typename T>
1919
class prevector_tester {

src/wallet/crypter.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ class CMasterKey
6767

6868
typedef std::vector<unsigned char, secure_allocator<unsigned char> > CKeyingMaterial;
6969

70-
namespace wallet_crypto
70+
namespace crypto_tests
7171
{
7272
class TestCrypter;
7373
}
7474

7575
/** Encryption/decryption context with key information */
7676
class CCrypter
7777
{
78-
friend class wallet_crypto::TestCrypter; // for test access to chKey/chIV
78+
friend class crypto_tests::TestCrypter; // for test access to chKey/chIV
7979
private:
8080
std::vector<unsigned char, secure_allocator<unsigned char>> vchKey;
8181
std::vector<unsigned char, secure_allocator<unsigned char>> vchIV;

src/wallet/test/coinselector_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include <boost/test/unit_test.hpp>
1414
#include <random>
1515

16-
BOOST_FIXTURE_TEST_SUITE(coin_selection_tests, WalletTestingSetup)
16+
BOOST_FIXTURE_TEST_SUITE(coinselector_tests, WalletTestingSetup)
1717

1818
// how many times to run all the tests to have a chance to catch errors that only show up with particular random shuffles
1919
#define RUN_TESTS 100

src/wallet/test/crypto_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#include <boost/test/unit_test.hpp>
1212

13-
BOOST_FIXTURE_TEST_SUITE(wallet_crypto, BasicTestingSetup)
13+
BOOST_FIXTURE_TEST_SUITE(crypto_tests, BasicTestingSetup)
1414

1515
class TestCrypter
1616
{

0 commit comments

Comments
 (0)