-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GMS-1616: Additional erc1155 unit tests #226
Conversation
GMS-1616: Additional erc1155 unit tests
🚨 Report Summary
For more details view the full report in OpenZeppelin Code Inspector |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just left a comment, if no concern, approved
@@ -129,6 +157,10 @@ contract ImmutableERC1155Test is Test { | |||
assertEq(immutableERC1155.baseURI(), "test-base-uri"); | |||
} | |||
|
|||
function test_DeploymentShouldSetUri() public { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is this test different from line 134?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is one of those cases of 'you optimize what you measure'.
The forge unit test coverage tool requires a unit test to deploy the contract in order to 'mark' that bit of code as 'tested'
So this is a unit test that deploys the contract and checks that the constructor is correct - in this case, it seems like a big workaround & unnecessary
This unit test validates the uri(uint256 index)
function that invokes baseURI()
- ignoring the index
No description provided.