Test the burn_from
function for successfully burning tokens with a best-effort approach.
Test the burn_from
function for handling insufficient funds with Precision::Exact
.
Test the burn_from
function for successfully burning an exact amount of tokens.
Test the can_deposit function for returning a minimum balance error.
Test the can_deposit function for returning an overflow error.
Test the can_deposit function for returning a success value.
Test the can_withdraw function for returning a low balance error.
Test the can_withdraw function for withdrawal resulting in a reduced balance of zero.
Test the can_withdraw function for returning a success value.
Test the mint_into
function for handling balances below the minimum value.
Test the mint_into
function for overflow prevention.
Test the mint_into
function for successful token minting.
Test the reducible_balance function with Preservation::Expendable.
Test the reducible_balance function with Preservation::Protect and Preservation::Preserve.
Test the restore
function for handling restoration below the minimum balance.
Test the restore
function for handling balance overflow.
Test the restore
function for successful restoration.
Test the set_balance function for successful burning.
Test the set_balance function for successful minting.
Test the shelve
function for handling insufficient funds.
Test the shelve
function for successful shelving.
Test the transfer
function with Preservation::Expendable
for transferring the entire
balance.
Test the transfer function with Preservation::Expendable for transferring amounts that leaves
an account with less than the minimum balance.
Test the transfer
function with Preservation::Protect
and Preservation::Preserve
for
transferring the entire balance.
Test the transfer
function for a successful transfer.