Open web3santa opened 2 months ago
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
peer/peer.go | 1 | 74.52% | ||
mempool/mempool.go | 1 | 66.84% | ||
<!-- | Total: | 2 | --> |
Totals | |
---|---|
Change from base Build 8636847188: | 0.02% |
Covered Lines: | 29456 |
Relevant Lines: | 51781 |
Use the newUtxoCache function to create a 1MB simulated newUtxoCache instance.
Call the totalMemoryUsage method to compare the returned result to the expected size of 1 MB.
If the result is different from the expected size, the test fails and outputs an error message.
This test code is responsible for ensuring that the memory usage of newUtxoCache matches the expected value.