mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 08:46:46 +00:00
chore: Enable clang-tidy misc checks (#6655)
This commit is contained in:
@@ -1880,7 +1880,7 @@ class Check_test : public beast::unit_test::suite
|
||||
// Automatic trust line creation should fail if the check destination
|
||||
// can't afford the reserve for the trust line.
|
||||
{
|
||||
AccountOwns gw1{*this, env, "gw1", 0};
|
||||
AccountOwns const gw1{*this, env, "gw1", 0};
|
||||
|
||||
// Fund gw1 with noripple (even though that's atypical for a
|
||||
// gateway) so it does not have any flags set. We'll set flags
|
||||
@@ -2000,7 +2000,7 @@ class Check_test : public beast::unit_test::suite
|
||||
{
|
||||
// No account root flags on any participant.
|
||||
// Automatic trust line from issuer to destination.
|
||||
AccountOwns gw1{*this, env, "gw1", 0};
|
||||
AccountOwns const gw1{*this, env, "gw1", 0};
|
||||
|
||||
BEAST_EXPECT((*env.le(gw1))[sfFlags] == 0);
|
||||
BEAST_EXPECT((*env.le(alice))[sfFlags] == 0);
|
||||
@@ -2053,7 +2053,7 @@ class Check_test : public beast::unit_test::suite
|
||||
// Transfer of assets using offers does not require rippling.
|
||||
// So bob's offer is successfully crossed which creates the
|
||||
// trust line.
|
||||
AccountOwns gw1{*this, env, "gw1", 0};
|
||||
AccountOwns const gw1{*this, env, "gw1", 0};
|
||||
IOU const OF1 = gw1["OF1"];
|
||||
env(offer(alice, XRP(97), OF1(97)));
|
||||
env.close();
|
||||
@@ -2102,7 +2102,7 @@ class Check_test : public beast::unit_test::suite
|
||||
{
|
||||
// gw1 enables rippling.
|
||||
// Automatic trust line from issuer to non-issuer should still work.
|
||||
AccountOwns gw1{*this, env, "gw1", 0};
|
||||
AccountOwns const gw1{*this, env, "gw1", 0};
|
||||
env(fset(gw1, asfDefaultRipple));
|
||||
env.close();
|
||||
|
||||
@@ -2150,7 +2150,7 @@ class Check_test : public beast::unit_test::suite
|
||||
// to non-issuer should work.
|
||||
|
||||
// Use offers to automatically create the trust line.
|
||||
AccountOwns gw1{*this, env, "gw1", 0};
|
||||
AccountOwns const gw1{*this, env, "gw1", 0};
|
||||
IOU const OF2 = gw1["OF2"];
|
||||
env(offer(alice, XRP(95), OF2(95)));
|
||||
env.close();
|
||||
@@ -2191,7 +2191,7 @@ class Check_test : public beast::unit_test::suite
|
||||
// change any outcomes.
|
||||
//
|
||||
// Automatic trust line from issuer to non-issuer should still work.
|
||||
AccountOwns gw1{*this, env, "gw1", 0};
|
||||
AccountOwns const gw1{*this, env, "gw1", 0};
|
||||
env(fset(gw1, asfDepositAuth));
|
||||
env(fset(alice, asfDepositAuth));
|
||||
env(fset(bob, asfDepositAuth));
|
||||
@@ -2241,7 +2241,7 @@ class Check_test : public beast::unit_test::suite
|
||||
// automatic trust line creation.
|
||||
|
||||
// Use offers to automatically create the trust line.
|
||||
AccountOwns gw1{*this, env, "gw1", 0};
|
||||
AccountOwns const gw1{*this, env, "gw1", 0};
|
||||
IOU const OF3 = gw1["OF3"];
|
||||
env(offer(alice, XRP(93), OF3(93)));
|
||||
env.close();
|
||||
@@ -2278,7 +2278,7 @@ class Check_test : public beast::unit_test::suite
|
||||
{
|
||||
// Set lsfGlobalFreeze on gw1. That should stop any automatic
|
||||
// trust lines from being created.
|
||||
AccountOwns gw1{*this, env, "gw1", 0};
|
||||
AccountOwns const gw1{*this, env, "gw1", 0};
|
||||
env(fset(gw1, asfGlobalFreeze));
|
||||
env.close();
|
||||
|
||||
@@ -2320,7 +2320,7 @@ class Check_test : public beast::unit_test::suite
|
||||
// no automatic trust line creation between non-issuers.
|
||||
|
||||
// Use offers to automatically create the trust line.
|
||||
AccountOwns gw1{*this, env, "gw1", 0};
|
||||
AccountOwns const gw1{*this, env, "gw1", 0};
|
||||
IOU const OF4 = gw1["OF4"];
|
||||
env(offer(alice, XRP(91), OF4(91)), ter(tecFROZEN));
|
||||
env.close();
|
||||
@@ -2370,7 +2370,7 @@ class Check_test : public beast::unit_test::suite
|
||||
|
||||
// Use offers to automatically create the trust line.
|
||||
IOU const OF5 = gw2["OF5"];
|
||||
std::uint32_t gw2OfferSeq = {env.seq(gw2)};
|
||||
std::uint32_t const gw2OfferSeq = {env.seq(gw2)};
|
||||
env(offer(gw2, XRP(92), OF5(92)));
|
||||
++gw2.owners;
|
||||
env.close();
|
||||
@@ -2423,7 +2423,7 @@ class Check_test : public beast::unit_test::suite
|
||||
// no automatic trust line creation between non-issuers.
|
||||
|
||||
// Use offers to automatically create the trust line.
|
||||
AccountOwns gw2{*this, env, "gw2", 0};
|
||||
AccountOwns const gw2{*this, env, "gw2", 0};
|
||||
IOU const OF5 = gw2["OF5"];
|
||||
env(offer(alice, XRP(91), OF5(91)), ter(tecUNFUNDED_OFFER));
|
||||
env.close();
|
||||
|
||||
Reference in New Issue
Block a user