Closed gitcoindev closed 9 months ago
@rndquu @molecula451 I covered initial edge cases for the diamond facet cut. I am still working to cover add / replace / remove diamond facet cut operations, therefore switched this pull request to a draft. I will let you know when it is ready for the review.
@rndquu , @molecula451 pull request ready for review, this one bumps test coverage to 76.6%
Development branch coverage: 70.9 PR branch coverage: 76.6
good work, it's nice the coverage increased but can you mock a library instead? and import the struct, storage selectors etc from there? also the interface? Basically the whole diamond pattern are library importing would be much better architected (the test) @gitcoindev
good work, it's nice the coverage increased but can you mock a library instead? and import the struct, storage selectors etc from there? also the interface? Basically the whole diamond pattern are library importing would be much better architected (the test) @gitcoindev
hi @molecula451 thank you. Did I understand correct that you mean to create test/diamond/facets/DiamondCutFacet.t.sol
and move test implementation with all imports there ?
@gitcoindev re-checking this notice the lack commenting, at least a header comment explaining the intention, for future reference when reading the code
test: implement MockFacet skeleton and initial facetCut tests
Resolves: #838