mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Format first-party source according to .clang-format
This commit is contained in:
committed by
manojsdoshi
parent
65dfc5d19e
commit
50760c6935
@@ -26,14 +26,11 @@ namespace jtx {
|
||||
namespace detail {
|
||||
|
||||
std::uint32_t
|
||||
owned_count_of(ReadView const& view,
|
||||
AccountID const& id,
|
||||
LedgerEntryType type)
|
||||
owned_count_of(ReadView const& view, AccountID const& id, LedgerEntryType type)
|
||||
{
|
||||
std::uint32_t count = 0;
|
||||
forEachItem (view, id,
|
||||
[&count, type](std::shared_ptr<SLE const> const& sle)
|
||||
{
|
||||
forEachItem(
|
||||
view, id, [&count, type](std::shared_ptr<SLE const> const& sle) {
|
||||
if (sle->getType() == type)
|
||||
++count;
|
||||
});
|
||||
@@ -41,25 +38,23 @@ owned_count_of(ReadView const& view,
|
||||
}
|
||||
|
||||
void
|
||||
owned_count_helper(Env& env,
|
||||
owned_count_helper(
|
||||
Env& env,
|
||||
AccountID const& id,
|
||||
LedgerEntryType type,
|
||||
std::uint32_t value)
|
||||
LedgerEntryType type,
|
||||
std::uint32_t value)
|
||||
{
|
||||
env.test.expect(owned_count_of(
|
||||
*env.current(), id, type) == value);
|
||||
env.test.expect(owned_count_of(*env.current(), id, type) == value);
|
||||
}
|
||||
|
||||
} // detail
|
||||
} // namespace detail
|
||||
|
||||
void
|
||||
owners::operator()(Env& env) const
|
||||
{
|
||||
env.test.expect(env.le(
|
||||
account_)->getFieldU32(sfOwnerCount) ==
|
||||
value_);
|
||||
env.test.expect(env.le(account_)->getFieldU32(sfOwnerCount) == value_);
|
||||
}
|
||||
|
||||
} // jtx
|
||||
} // test
|
||||
} // ripple
|
||||
} // namespace jtx
|
||||
} // namespace test
|
||||
} // namespace ripple
|
||||
|
||||
Reference in New Issue
Block a user