mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 08:46:46 +00:00
more codecov (hopefully)
This commit is contained in:
@@ -72,6 +72,27 @@ public:
|
||||
env(regkey(alice, alice), Ter(temBAD_REGKEY));
|
||||
}
|
||||
|
||||
void
|
||||
testNoAlternativeKey()
|
||||
{
|
||||
using namespace test::jtx;
|
||||
|
||||
testcase("Cannot remove last signing method");
|
||||
Env env{*this, testableAmendments()};
|
||||
Account const alice("alice");
|
||||
Account const bob("bob");
|
||||
env.fund(XRP(10000), alice);
|
||||
|
||||
env(regkey(alice, bob));
|
||||
env(fset(alice, asfDisableMaster), Sig(alice));
|
||||
|
||||
env(regkey(alice, kDisabled), Sig(bob), Ter(tecNO_ALTERNATIVE_KEY));
|
||||
|
||||
auto const sle = env.le(alice);
|
||||
BEAST_EXPECT(
|
||||
sle && sle->isFlag(lsfDisableMaster) && sle->getAccountID(sfRegularKey) == bob.id());
|
||||
}
|
||||
|
||||
void
|
||||
testPasswordSpent()
|
||||
{
|
||||
@@ -169,6 +190,7 @@ public:
|
||||
{
|
||||
testDisabledMasterKey();
|
||||
testDisabledRegularKey();
|
||||
testNoAlternativeKey();
|
||||
testPasswordSpent();
|
||||
testUniversalMask();
|
||||
testTicketRegularKey();
|
||||
|
||||
Reference in New Issue
Block a user