Test Summary - CreditGateVault
Total tests: 191 Foundry + 44 Python · 19 Solidity suites · Failures: 0 · Skipped: 0
Freshly verified with:
forge test --summaryThe suite runs with solc 0.8.35 and IR optimization, matching the replacement Coston2 deployment build. IR optimization keeps CreditGateVault below the EIP-170 runtime code-size limit.
Coverage Areas
- Loan lifecycle: collateral deposit, eligibility attestation, draw, FDC repayment, close, and withdrawal.
- Cross-chain settlement: borrower XRPL source snapshot, immutable protocol receiver, exact memo commitment, replay prevention, atomic settlement-agent USDT0 transfer, and insufficient-settlement regression cases.
- Lender accounting: liquidity shares, available-liquidity guards, outstanding principal, protocol reserve exclusion, and auction escrow exclusion.
- Liquidation: deadline and health-factor triggers, fresh-oracle enforcement, bid monotonicity, principal floor, no-bid recovery, and paused emergency operations.
- Security: EIP-191 signature checks, reentrancy, malicious-token callback, nonce/revocation handling, FTSO edge cases, state-machine constraints, and fuzz invariants.
- Integrations: Go and Python TEE signing compatibility, FDC proof fixture shape, CreditScoreSBT updates, ContractRegistry refreshes, and frontend ABI coverage.
Suite Breakdown
| Suite | Tests |
|---|---|
| CreditGateVaultTest | 69 |
| CreditGateVaultAuctionTest | 5 |
| CreditGateVaultEdgeCaseTest | 15 |
| CreditGateVaultFDCFixtureTest | 4 |
| CreditGateVaultGracePeriodTest | 5 |
| CreditGateVaultInvariantTest | 8 |
| CreditGateVaultLTVTest | 11 |
| CreditGateVaultRealReentrancyTest | 1 |
| CreditGateVaultOwnershipTest | 4 |
| CreditGateVaultProtocolReserveTest | 13 |
| CreditGateVaultReentrancyAttackTest | 2 |
| CreditGateVaultRegistryTest | 4 |
| CreditGateVaultReputationTest | 5 |
| CreditGateVaultSecurityEdgeTest | 5 |
| CreditGateVaultTeeCompatTest | 4 |
| CreditGateVaultTriggerTest | 9 |
| CreditGateVaultViewsTest | 15 |
| CreditScoreSBTTest | 9 |
| SBTVaultIntegrationTest | 3 |
Run forge test --summary for the authoritative breakdown.