mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 08:46:46 +00:00
refactor: Rename ripple namespace to xrpl (#5982)
This change renames all occurrences of `namespace ripple` and `ripple::` to `namespace xrpl` and `xrpl::`, respectively, as well as the names of test suites. It also provides a script to allow developers to replicate the changes in their local branch or fork to avoid conflicts.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
#include <memory>
|
||||
#include <type_traits>
|
||||
|
||||
namespace ripple {
|
||||
namespace xrpl {
|
||||
|
||||
class STValidation_test : public beast::unit_test::suite
|
||||
{
|
||||
@@ -187,7 +187,7 @@ public:
|
||||
try
|
||||
{
|
||||
SerialIter sit{payload1};
|
||||
auto val = std::make_shared<ripple::STValidation>(
|
||||
auto val = std::make_shared<xrpl::STValidation>(
|
||||
sit, [](PublicKey const& pk) { return calcNodeID(pk); }, false);
|
||||
fail("An exception should have been thrown");
|
||||
}
|
||||
@@ -202,7 +202,7 @@ public:
|
||||
try
|
||||
{
|
||||
SerialIter sit{payload2};
|
||||
auto val = std::make_shared<ripple::STValidation>(
|
||||
auto val = std::make_shared<xrpl::STValidation>(
|
||||
sit, [](PublicKey const& pk) { return calcNodeID(pk); }, false);
|
||||
fail("An exception should have been thrown");
|
||||
}
|
||||
@@ -215,7 +215,7 @@ public:
|
||||
try
|
||||
{
|
||||
SerialIter sit{payload3};
|
||||
auto val = std::make_shared<ripple::STValidation>(
|
||||
auto val = std::make_shared<xrpl::STValidation>(
|
||||
sit, [](PublicKey const& pk) { return calcNodeID(pk); }, false);
|
||||
fail("An exception should have been thrown");
|
||||
}
|
||||
@@ -228,7 +228,7 @@ public:
|
||||
try
|
||||
{
|
||||
SerialIter sit{payload4};
|
||||
auto val = std::make_shared<ripple::STValidation>(
|
||||
auto val = std::make_shared<xrpl::STValidation>(
|
||||
sit, [](PublicKey const& pk) { return calcNodeID(pk); }, false);
|
||||
fail("An exception should have been thrown");
|
||||
}
|
||||
@@ -330,6 +330,6 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
BEAST_DEFINE_TESTSUITE(STValidation, protocol, ripple);
|
||||
BEAST_DEFINE_TESTSUITE(STValidation, protocol, xrpl);
|
||||
|
||||
} // namespace ripple
|
||||
} // namespace xrpl
|
||||
|
||||
Reference in New Issue
Block a user