Closed varunsrin closed 1 year ago
Coverage after merging varunsrin/gas-price-tests into main will be
96.91% |
---|
File | Stmts | Branches | Funcs | Lines | Uncovered Lines |
---|---|---|---|---|---|
src | |||||
Bundler.sol | 100% | 100% | 100% | 100% | |
FnameResolver.sol | 96.30% | 75% | 100% | 100% | 121 |
IdRegistry.sol | 97.30% | 100% | 92.31% | 97.44% | 315 |
StorageRent.sol | 98.80% | 98.33% | 100% | 98.86% | 495, 497 |
src/lib | |||||
TransferHelper.sol | 0% | 0% | 0% | 0% | 15, 15, 15, 25–26, 26, 26 |
Motivation
Require updating snapshots explicitly when gas usage for common functionality changes so that we are aware of regressions and improvements being introduced.
Change Summary
Added snapshot tests for common functions in Bundler, StorageRent
Merge Checklist
PR-Codex overview
Focus of the PR:
This PR focuses on adding gas usage tests for the BundleRegistry and StorageRent contracts.
Detailed summary:
register
,trustedRegister
, andtrustedBatchRegister
functions.rent
,batchRent
,credit
,batchCredit
, andcontinuousCredit
functions.