aboutsummaryrefslogtreecommitdiff
path: root/src/test/argsman_tests.cpp
diff options
context:
space:
mode:
authorTheCharlatan <seb.kung@gmail.com>2023-05-09 22:03:50 +0200
committerTheCharlatan <seb.kung@gmail.com>2023-05-10 10:39:58 +0200
commite23088707be2c3bf247f4b777290c8e401db48cb (patch)
tree2bbdefb0d41490d825b9464b37b00bbddc93b1e9 /src/test/argsman_tests.cpp
parentfc06881f13495154c888a64a38c7d538baf00435 (diff)
refactor: Use ChainType enum exhaustively
This is a follow up of https://github.com/bitcoin/bitcoin/pull/27491, more concretely https://github.com/bitcoin/bitcoin/pull/27491#discussion_r1188847896, for not using default cases (as per the style guide), and https://github.com/bitcoin/bitcoin/pull/27491#discussion_r1188852707 and https://github.com/bitcoin/bitcoin/pull/27491#discussion_r1188851857 for avoiding dead code. Also change chain name to chain type in docstrings
Diffstat (limited to 'src/test/argsman_tests.cpp')
-rw-r--r--src/test/argsman_tests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/argsman_tests.cpp b/src/test/argsman_tests.cpp
index 4d6ef206c7..48bffc4ac9 100644
--- a/src/test/argsman_tests.cpp
+++ b/src/test/argsman_tests.cpp
@@ -255,7 +255,7 @@ BOOST_AUTO_TEST_CASE(util_ParseInvalidParameters)
BOOST_CHECK(!test.ParseParameters(2, (char**)argv, error));
BOOST_CHECK_EQUAL(error, "Invalid parameter -unregistered");
- // Make sure registered parameters prefixed with a chain name trigger errors.
+ // Make sure registered parameters prefixed with a chain type trigger errors.
// (Previously, they were accepted and ignored.)
argv[1] = "-test.registered";
BOOST_CHECK(!test.ParseParameters(2, (char**)argv, error));