Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
dangell7 committed Mar 18, 2024
1 parent 0b3f2a1 commit 2972f04
Showing 1 changed file with 94 additions and 47 deletions.
141 changes: 94 additions & 47 deletions src/test/app/Import_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3000,7 +3000,8 @@ class Import_test : public beast::unit_test::suite
env.close();

// total burn = burn drops - feeDrops
bool const zeroBurn = env.current()->rules().enabled(featureZeroB2M);
bool const zeroBurn =
env.current()->rules().enabled(featureZeroB2M);
auto const totalBurn = XRP(zeroBurn ? 0 : 1000) + XRP(2);

// confirm fee was minted
Expand Down Expand Up @@ -3112,7 +3113,8 @@ class Import_test : public beast::unit_test::suite
env.close();

// total burn = burn drops - feeDrops
bool const zeroBurn = env.current()->rules().enabled(featureZeroB2M);
bool const zeroBurn =
env.current()->rules().enabled(featureZeroB2M);
auto const totalBurn = XRP(zeroBurn ? 0 : 1000) + XRP(2);

// confirm fee was minted
Expand Down Expand Up @@ -3180,7 +3182,8 @@ class Import_test : public beast::unit_test::suite
env.close();

// total burn = burn drops - feeDrops
bool const zeroBurn = env.current()->rules().enabled(featureZeroB2M);
bool const zeroBurn =
env.current()->rules().enabled(featureZeroB2M);
auto const totalBurn = drops(zeroBurn ? 0 : 48) + XRP(2);

// confirm fee was minted
Expand Down Expand Up @@ -3245,7 +3248,8 @@ class Import_test : public beast::unit_test::suite
env.close();

// total burn = burn drops - feeDrops
bool const zeroBurn = env.current()->rules().enabled(featureZeroB2M);
bool const zeroBurn =
env.current()->rules().enabled(featureZeroB2M);
auto const totalBurn = XRP(zeroBurn ? 0 : 1000) - (feeDrops * 10);

// confirm fee was minted
Expand Down Expand Up @@ -3303,7 +3307,8 @@ class Import_test : public beast::unit_test::suite
env.close();

// total burn = burn drops - feeDrops
bool const zeroBurn = env.current()->rules().enabled(featureZeroB2M);
bool const zeroBurn =
env.current()->rules().enabled(featureZeroB2M);
auto const totalBurn = XRP(zeroBurn ? 0 : 1000) - (feeDrops * 10);

// confirm fee was minted
Expand Down Expand Up @@ -3368,8 +3373,10 @@ class Import_test : public beast::unit_test::suite
env.close();

// total burn = burn drops - feeDrops
bool const zeroBurn = env.current()->rules().enabled(featureZeroB2M);
auto const totalBurn = drops(zeroBurn ? 0 : 48) - ((3 * feeDrops) * 10);
bool const zeroBurn =
env.current()->rules().enabled(featureZeroB2M);
auto const totalBurn =
drops(zeroBurn ? 0 : 48) - ((3 * feeDrops) * 10);

// confirm fee was minted
auto const postAlice = env.balance(alice);
Expand Down Expand Up @@ -3439,7 +3446,8 @@ class Import_test : public beast::unit_test::suite
env.close();

// total burn = burn drops - fee drops
bool const zeroBurn = env.current()->rules().enabled(featureZeroB2M);
bool const zeroBurn =
env.current()->rules().enabled(featureZeroB2M);
auto const totalBurn = drops(zeroBurn ? 0 : 10) - (feeDrops * 10);

// confirm fee was minted
Expand Down Expand Up @@ -3507,7 +3515,8 @@ class Import_test : public beast::unit_test::suite
env.close();

// total burn = burn drops + reward amount
bool const zeroBurn = env.current()->rules().enabled(featureZeroB2M);
bool const zeroBurn =
env.current()->rules().enabled(featureZeroB2M);
auto const totalBurn = drops(zeroBurn ? 0 : 12) + XRP(2);

// confirm fee was minted
Expand Down Expand Up @@ -3568,7 +3577,8 @@ class Import_test : public beast::unit_test::suite
env.close();

// total burn = burn drops - initial value
bool const zeroBurn = env.current()->rules().enabled(featureZeroB2M);
bool const zeroBurn =
env.current()->rules().enabled(featureZeroB2M);
auto const totalBurn = drops(zeroBurn ? 0 : 12) + XRP(2);

// confirm fee was minted
Expand Down Expand Up @@ -3631,7 +3641,8 @@ class Import_test : public beast::unit_test::suite
env.close();

// total burn = burn drops + reward amount
bool const zeroBurn = env.current()->rules().enabled(featureZeroB2M);
bool const zeroBurn =
env.current()->rules().enabled(featureZeroB2M);
auto const totalBurn = drops(zeroBurn ? 0 : 48) + XRP(2);

// confirm fee was minted
Expand Down Expand Up @@ -3694,7 +3705,8 @@ class Import_test : public beast::unit_test::suite
env.close();

// total burn = burn drops - feeDrops
bool const zeroBurn = env.current()->rules().enabled(featureZeroB2M);
bool const zeroBurn =
env.current()->rules().enabled(featureZeroB2M);
auto const totalBurn = drops(zeroBurn ? 0 : 12) - (feeDrops * 10);

// confirm fee was minted
Expand Down Expand Up @@ -3765,7 +3777,8 @@ class Import_test : public beast::unit_test::suite
env.close();

// total burn = burn drops - fee drops
bool const zeroBurn = env.current()->rules().enabled(featureZeroB2M);
bool const zeroBurn =
env.current()->rules().enabled(featureZeroB2M);
auto const totalBurn = drops(zeroBurn ? 0 : 12) - (feeDrops * 10);

// confirm fee was minted
Expand Down Expand Up @@ -3837,7 +3850,8 @@ class Import_test : public beast::unit_test::suite
env.close();

// total burn = burn drops - fee drops
bool const zeroBurn = env.current()->rules().enabled(featureZeroB2M);
bool const zeroBurn =
env.current()->rules().enabled(featureZeroB2M);
auto const totalBurn = drops(zeroBurn ? 0 : 12) - (feeDrops * 10);

// confirm fee was minted
Expand Down Expand Up @@ -3910,8 +3924,10 @@ class Import_test : public beast::unit_test::suite
env.close();

// total burn = burn drops - fee drops
bool const zeroBurn = env.current()->rules().enabled(featureZeroB2M);
auto const totalBurn = drops(zeroBurn ? 0 : 48) - ((3 * feeDrops) * 10);
bool const zeroBurn =
env.current()->rules().enabled(featureZeroB2M);
auto const totalBurn =
drops(zeroBurn ? 0 : 48) - ((3 * feeDrops) * 10);

// confirm fee was minted
auto const postAlice = env.balance(alice);
Expand Down Expand Up @@ -3985,7 +4001,8 @@ class Import_test : public beast::unit_test::suite
env.close();

// total burn = burn drops - fee drops
bool const zeroBurn = env.current()->rules().enabled(featureZeroB2M);
bool const zeroBurn =
env.current()->rules().enabled(featureZeroB2M);
auto const totalBurn = drops(zeroBurn ? 0 : 12) - (feeDrops * 10);

// confirm fee was minted
Expand Down Expand Up @@ -4055,7 +4072,8 @@ class Import_test : public beast::unit_test::suite
env.close();

// total burn = burn drops - fee drops
bool const zeroBurn = env.current()->rules().enabled(featureZeroB2M);
bool const zeroBurn =
env.current()->rules().enabled(featureZeroB2M);
auto const totalBurn = drops(zeroBurn ? 0 : 12) - (feeDrops * 10);

// confirm fee was minted
Expand Down Expand Up @@ -4129,8 +4147,10 @@ class Import_test : public beast::unit_test::suite
env.close();

// total burn = burn drops - fee drops
bool const zeroBurn = env.current()->rules().enabled(featureZeroB2M);
auto const totalBurn = drops(zeroBurn ? 0 : 48) - ((3 * feeDrops) * 10);
bool const zeroBurn =
env.current()->rules().enabled(featureZeroB2M);
auto const totalBurn =
drops(zeroBurn ? 0 : 48) - ((3 * feeDrops) * 10);

// confirm fee was minted
auto const postAlice = env.balance(alice);
Expand Down Expand Up @@ -4320,8 +4340,10 @@ class Import_test : public beast::unit_test::suite
env.close();

// total burn = (burn drops + burn fee drops) - reward
bool const zeroBurn = env.current()->rules().enabled(featureZeroB2M);
auto const totalBurn = XRP(zeroBurn ? 0 : 2) + drops(zeroBurn ? 0 : 12) + XRP(2);
bool const zeroBurn =
env.current()->rules().enabled(featureZeroB2M);
auto const totalBurn =
XRP(zeroBurn ? 0 : 2) + drops(zeroBurn ? 0 : 12) + XRP(2);

// confirm fee was minted
auto const postAlice = env.balance(alice);
Expand Down Expand Up @@ -4403,8 +4425,10 @@ class Import_test : public beast::unit_test::suite
env.close();

// total burn = (burn drops + burn fee drops) - fee drops
bool const zeroBurn = env.current()->rules().enabled(featureZeroB2M);
auto const totalBurn = XRP(zeroBurn ? 0 : 2) + drops(zeroBurn ? 0 : 12) + XRP(2);
bool const zeroBurn =
env.current()->rules().enabled(featureZeroB2M);
auto const totalBurn =
XRP(zeroBurn ? 0 : 2) + drops(zeroBurn ? 0 : 12) + XRP(2);

// confirm fee was minted
auto const postAlice = env.balance(alice);
Expand Down Expand Up @@ -4562,8 +4586,10 @@ class Import_test : public beast::unit_test::suite
env.close();

// total burn = (burn drops + burn fee drops) - fee drops
bool const zeroBurn = env.current()->rules().enabled(featureZeroB2M);
auto const totalBurn = XRP(zeroBurn ? 0 : 2) + drops(zeroBurn ? 0 : 12) - (feeDrops * 10);
bool const zeroBurn =
env.current()->rules().enabled(featureZeroB2M);
auto const totalBurn = XRP(zeroBurn ? 0 : 2) +
drops(zeroBurn ? 0 : 12) - (feeDrops * 10);

// confirm fee was minted
auto const postAlice = env.balance(alice);
Expand Down Expand Up @@ -4654,8 +4680,10 @@ class Import_test : public beast::unit_test::suite
env.close();

// total burn = (burn drops + burn fee drops) - fee drops
bool const zeroBurn = env.current()->rules().enabled(featureZeroB2M);
auto const totalBurn = XRP(zeroBurn ? 0 : 2) + drops(zeroBurn ? 0 : 12) - (feeDrops * 10);
bool const zeroBurn =
env.current()->rules().enabled(featureZeroB2M);
auto const totalBurn = XRP(zeroBurn ? 0 : 2) +
drops(zeroBurn ? 0 : 12) - (feeDrops * 10);

// confirm fee was minted
auto const postAlice = env.balance(alice);
Expand Down Expand Up @@ -4734,8 +4762,10 @@ class Import_test : public beast::unit_test::suite
env.close();

// total burn = (burn drops + burn fee drops) - fee drops
bool const zeroBurn = env.current()->rules().enabled(featureZeroB2M);
auto const totalBurn = XRP(zeroBurn ? 0 : 2) + drops(zeroBurn ? 0 : 12) - (feeDrops * 10);
bool const zeroBurn =
env.current()->rules().enabled(featureZeroB2M);
auto const totalBurn = XRP(zeroBurn ? 0 : 2) +
drops(zeroBurn ? 0 : 12) - (feeDrops * 10);

// confirm fee was minted
auto const postAlice = env.balance(alice);
Expand Down Expand Up @@ -4815,8 +4845,10 @@ class Import_test : public beast::unit_test::suite
env.close();

// total burn = (burn drops + burn fee drops) - fee drops
bool const zeroBurn = env.current()->rules().enabled(featureZeroB2M);
auto const totalBurn = XRP(zeroBurn ? 0 : 2) + drops(zeroBurn ? 0 : 48) - ((3 * feeDrops) * 10);
bool const zeroBurn =
env.current()->rules().enabled(featureZeroB2M);
auto const totalBurn = XRP(zeroBurn ? 0 : 2) +
drops(zeroBurn ? 0 : 48) - ((3 * feeDrops) * 10);

// confirm fee was minted
auto const postAlice = env.balance(alice);
Expand Down Expand Up @@ -5078,7 +5110,8 @@ class Import_test : public beast::unit_test::suite
env.close();

// fixXahauV2
bool const zeroBurn = env.current()->rules().enabled(featureZeroB2M);
bool const zeroBurn =
env.current()->rules().enabled(featureZeroB2M);
auto const mintXAH = fixV2 ? XRP(zeroBurn ? 0 : 1000) : XRP(0);
// confirm fee was burned mint / no mint
auto const postAlice = env.balance(alice);
Expand All @@ -5098,7 +5131,8 @@ class Import_test : public beast::unit_test::suite
env.close();

// total burn
auto const totalBurn = fixV2 ? XRP(0) : XRP(zeroBurn ? 0 : 1000) - (feeDrops * 10);
auto const totalBurn =
fixV2 ? XRP(0) : XRP(zeroBurn ? 0 : 1000) - (feeDrops * 10);

// confirm fee was minted / not minted
auto const postAlice2 = env.balance(alice);
Expand Down Expand Up @@ -5342,7 +5376,8 @@ class Import_test : public beast::unit_test::suite
auto const preAlice = env.balance(alice);
BEAST_EXPECT(preAlice == XRP(0));

bool const zeroBurn = env.current()->rules().enabled(featureZeroB2M);
bool const zeroBurn =
env.current()->rules().enabled(featureZeroB2M);
STAmount burnFee = XRP(zeroBurn ? 0 : 1000) + XRP(2);
auto const xpopJson = import::loadXpop(ImportTCAccountSet::w_seed);
Json::Value tx = import::import(alice, xpopJson);
Expand Down Expand Up @@ -5381,7 +5416,8 @@ class Import_test : public beast::unit_test::suite
auto const preAlice = env.balance(alice);
BEAST_EXPECT(preAlice == XRP(0));

bool const zeroBurn = env.current()->rules().enabled(featureZeroB2M);
bool const zeroBurn =
env.current()->rules().enabled(featureZeroB2M);
STAmount burnFee = XRP(zeroBurn ? 0 : 1000) + XRP(2);
auto const xpopJson = import::loadXpop(ImportTCAccountSet::w_seed);
Json::Value tx = import::import(alice, xpopJson);
Expand Down Expand Up @@ -5413,7 +5449,8 @@ class Import_test : public beast::unit_test::suite
auto const preAlice = env.balance(alice);
BEAST_EXPECT(preAlice == XRP(0));

bool const zeroBurn = env.current()->rules().enabled(featureZeroB2M);
bool const zeroBurn =
env.current()->rules().enabled(featureZeroB2M);
STAmount burnFee = XRP(zeroBurn ? 0 : 1000) + XRP(2);
auto const xpopJson = import::loadXpop(ImportTCAccountSet::w_seed);
Json::Value tx = import::import(alice, xpopJson);
Expand Down Expand Up @@ -5474,7 +5511,8 @@ class Import_test : public beast::unit_test::suite
env.close();

// total burn = burn drops + reward amount
bool const zeroBurn = env.current()->rules().enabled(featureZeroB2M);
bool const zeroBurn =
env.current()->rules().enabled(featureZeroB2M);
auto const totalBurn = drops(zeroBurn ? 0 : 10) + XRP(2);

// confirm fee was minted
Expand Down Expand Up @@ -5532,7 +5570,8 @@ class Import_test : public beast::unit_test::suite
env.close();

// total burn = burn drops + reward amount
bool const zeroBurn = env.current()->rules().enabled(featureZeroB2M);
bool const zeroBurn =
env.current()->rules().enabled(featureZeroB2M);
auto const totalBurn = drops(zeroBurn ? 0 : 10) + XRP(20);

// confirm fee was minted
Expand Down Expand Up @@ -5587,8 +5626,10 @@ class Import_test : public beast::unit_test::suite
env.close();

// total burn = burn drops + reward amount
bool const zeroBurn = env.current()->rules().enabled(featureZeroB2M);
auto const totalBurn = drops(zeroBurn ? 0 : 99'999'939'799'000'000) + XRP(2);
bool const zeroBurn =
env.current()->rules().enabled(featureZeroB2M);
auto const totalBurn =
drops(zeroBurn ? 0 : 99'999'939'799'000'000) + XRP(2);

// confirm fee was minted
auto const postAlice = env.balance(alice);
Expand Down Expand Up @@ -5645,7 +5686,8 @@ class Import_test : public beast::unit_test::suite
env.close();

// total burn = burn drops + Init Reward
bool const zeroBurn = env.current()->rules().enabled(featureZeroB2M);
bool const zeroBurn =
env.current()->rules().enabled(featureZeroB2M);
auto const creditDrops = XRP(zeroBurn ? 0 : 1'000) + XRP(2);

// confirm fee was minted
Expand Down Expand Up @@ -5689,7 +5731,8 @@ class Import_test : public beast::unit_test::suite
env.close();

// total burn = burn drops + Init Reward
bool const zeroBurn = env.current()->rules().enabled(featureZeroB2M);
bool const zeroBurn =
env.current()->rules().enabled(featureZeroB2M);
auto const creditDrops = XRP(zeroBurn ? 0 : 1'000) + XRP(2);

// confirm fee was minted
Expand Down Expand Up @@ -5734,7 +5777,8 @@ class Import_test : public beast::unit_test::suite
env.close();

// total burn = burn drops + Init Reward
bool const zeroBurn = env.current()->rules().enabled(featureZeroB2M);
bool const zeroBurn =
env.current()->rules().enabled(featureZeroB2M);
auto const creditDrops = drops(zeroBurn ? 0 : 999999964) + XRP(2);

// confirm fee was minted
Expand Down Expand Up @@ -5777,7 +5821,8 @@ class Import_test : public beast::unit_test::suite
env.close();

// total burn = burn drops + Init Reward
bool const zeroBurn = env.current()->rules().enabled(featureZeroB2M);
bool const zeroBurn =
env.current()->rules().enabled(featureZeroB2M);
auto const creditDrops = drops(zeroBurn ? 0 : 892857142) + XRP(2);

// confirm fee was minted
Expand Down Expand Up @@ -5820,7 +5865,8 @@ class Import_test : public beast::unit_test::suite
env.close();

// total burn = burn drops + Init Reward
bool const zeroBurn = env.current()->rules().enabled(featureZeroB2M);
bool const zeroBurn =
env.current()->rules().enabled(featureZeroB2M);
auto const creditDrops = drops(zeroBurn ? 0 : 357142857) + XRP(2);

// confirm fee was minted
Expand Down Expand Up @@ -5863,7 +5909,8 @@ class Import_test : public beast::unit_test::suite
env.close();

// total burn = burn drops + Init Reward
bool const zeroBurn = env.current()->rules().enabled(featureZeroB2M);
bool const zeroBurn =
env.current()->rules().enabled(featureZeroB2M);
auto const creditDrops = drops(zeroBurn ? 0 : 35) + XRP(2);

// confirm fee was minted
Expand Down

0 comments on commit 2972f04

Please sign in to comment.