Skip to content

Commit

Permalink
updated test summary
Browse files Browse the repository at this point in the history
  • Loading branch information
toyv0 committed Apr 19, 2024
1 parent 627b073 commit 34c273a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
14 changes: 5 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,20 +78,16 @@ test_file_block_debug_test :; FOUNDRY_PROFILE=$(PROFILE) forge test $(FORK_URL)

# | File | % Lines | % Statements | % Branches | % Funcs |
# |----------------------------|--------------------|--------------------|------------------|------------------|
# | src/RewardsDistributor.sol | 90.00% (126/140) | 88.44% (176/199) | 63.64% (42/66) | 80.00% (12/15) |
# | src/VotingEscrow.sol | 90.34% (449/497) | 91.06% (560/615) | 67.05% (177/264) | 82.50% (66/80) |


# | File | % Lines | % Statements | % Branches | % Funcs |
# |----------------------------|--------------------|--------------------|------------------|------------------|
# | src/Bribe.sol | 94.52% (138/146) | 95.63% (175/183) | 78.38% (58/74) | 100.00% (19/19) |
# | src/RewardsDistributor.sol | 90.00% (126/140) | 87.44% (174/199) | 69.70% (46/66) | 80.00% (12/15) |
# | src/Bribe.sol | 92.47% (135/146) | 93.44% (171/183) | 78.38% (58/74) | 78.95% (15/19) |
# | src/VotingEscrow.sol | 93.96% (467/497) | 94.13% (577/613) | 77.65% (205/264) | 90.00% (72/80) |
# | src/Voter.sol | 98.86% (173/175) | 99.01% (200/202) | 83.96% (89/106) | 96.67% (29/30) |
# | src/Minter.sol | 100.00% (48/48) | 100.00% (61/61) | 88.46% (23/26) | 100.00% (9/9) |
# | src/Voter.sol | 97.14% (170/175) | 96.53% (195/202) | 83.02% (88/106) | 93.33% (28/30) |
# | src/FluxToken.sol | 97.06% (66/68) | 97.40% (75/77) | 90.32% (56/62) | 100.00% (19/19) |
# | src/RevenueHandler.sol | 100.00% (94/94) | 100.00% (115/115) | 93.18% (41/44) | 100.00% (15/15) |
# | src/RewardPoolManager.sol | 100.00% (47/47) | 100.00% (55/55) | 94.12% (32/34) | 100.00% (13/13) |
# | src/BaseGauge.sol | 100.00% (13/13) | 100.00% (13/13) | 100.00% (14/14) | 80.00% (4/5) |
# | src/AlchemixGovernor.sol | 100.00% (16/16) | 100.00% (17/17) | 100.00% (12/12) | 100.00% (6/6) |
# | src/BaseGauge.sol | 100.00% (13/13) | 100.00% (13/13) | 100.00% (14/14) | 80.00% (4/5) |
# | src/BribeFactory.sol | 100.00% (1/1) | 100.00% (2/2) | 100.00% (0/0) | 100.00% (1/1) |
# | src/GaugeFactory.sol | 100.00% (2/2) | 100.00% (4/4) | 100.00% (0/0) | 100.00% (2/2) |
# | src/PassthroughGauge.sol | 100.00% (2/2) | 100.00% (2/2) | 100.00% (0/0) | 100.00% (1/1) |
7 changes: 4 additions & 3 deletions src/test/Voting.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ contract VotingTest is BaseTest {
function testInvalidGauge() public {
uint256 tokenId = createVeAlcx(admin, TOKEN_1, MAXTIME, false);

hevm.prank(voter.admin());
hevm.expectRevert(abi.encodePacked("exists"));
voter.createGauge(alUsdPoolAddress, IVoter.GaugeType.Passthrough);

hevm.startPrank(admin);

uint256 period = minter.activePeriod();
Expand All @@ -174,9 +178,6 @@ contract VotingTest is BaseTest {
pools[0] = alUsdPoolAddress;
voter.killGauge(voter.gauges(alUsdPoolAddress));

hevm.expectRevert(abi.encodePacked("exists"));
voter.createGauge(alUsdPoolAddress, IVoter.GaugeType.Passthrough);

hevm.expectRevert(abi.encodePacked("cannot vote for dead gauge"));
voter.vote(tokenId, pools, weights, 0);

Expand Down

0 comments on commit 34c273a

Please sign in to comment.