Summary
The pool's handle_default function at contracts/pool/src/lib.rs:687-744 returns false when no FundedInvoice entry exists. This early-return path has no test coverage.
Current Behavior
Lines 696-698:
if !env.storage().persistent().has(&funded_key) {
return false;
}
The test suite has no test that calls handle_default with an unknown invoice ID.
Expected Behavior
Add a test that calls pool.handle_default with an invoice ID that was never funded.
Acceptance Criteria
Tech Stack
contracts/pool/src/test.rs
Summary
The pool's
handle_defaultfunction atcontracts/pool/src/lib.rs:687-744returnsfalsewhen noFundedInvoiceentry exists. This early-return path has no test coverage.Current Behavior
Lines 696-698:
The test suite has no test that calls
handle_defaultwith an unknown invoice ID.Expected Behavior
Add a test that calls
pool.handle_defaultwith an invoice ID that was never funded.Acceptance Criteria
handle_defaultreturnsfalsefor unfunded invoiceTech Stack
contracts/pool/src/test.rs