Skip to content
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

CCIP-4114 refactor token pool tests for one function per file #15119

Merged
merged 6 commits into from
Nov 5, 2024

Conversation

jhweintraub
Copy link
Collaborator

Refactor tests in the token pools folder to better align with new formatting and solhint rules. One function per file. Hybrid USDC Token pool tests were also modified in name to align with the naming convention.

Previous Lines in the ccip.gas-snapshot: 748
Current lines: 756

@jhweintraub jhweintraub requested a review from a team as a code owner November 5, 2024 14:44
assertEq(address(s_burnMintERC677), address(s_pool.getToken()));
assertEq(address(s_mockRMN), s_pool.getRmnProxy());
assertEq(false, s_pool.getAllowListEnabled());
assertEq(type(uint256).max, s_burnMintERC677.allowance(address(s_pool), address(s_pool)));
assertEq("BurnFromMintTokenPool 1.5.0", s_pool.typeAndVersion());
}

function test_PoolBurn_Success() public {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you change the casing on these? The test rename comes after and these new names are not following the final naming scheme anyway?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it was giving annoying linting errors about the case which is why but I will revert it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh!? Solhint issues?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no idea.

@jhweintraub jhweintraub added this pull request to the merge queue Nov 5, 2024
Merged via the queue into develop with commit dc5c1ec Nov 5, 2024
129 checks passed
@jhweintraub jhweintraub deleted the refactor/tokenPool_tests branch November 5, 2024 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants