Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
c10e8666
Commit
c10e8666
authored
Jun 20, 2023
by
inphi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update test descriptions
parent
f4303d5a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
23 deletions
+23
-23
.gas-snapshot
packages/contracts-bedrock/.gas-snapshot
+14
-14
FaultDisputeGame.t.sol
...s/contracts-bedrock/contracts/test/FaultDisputeGame.t.sol
+9
-9
No files found.
packages/contracts-bedrock/.gas-snapshot
View file @
c10e8666
...
@@ -32,25 +32,25 @@ DisputeGameFactory_SetImplementation_Test:test_setImplementation_notOwner_revert
...
@@ -32,25 +32,25 @@ DisputeGameFactory_SetImplementation_Test:test_setImplementation_notOwner_revert
DisputeGameFactory_SetImplementation_Test:test_setImplementation_succeeds() (gas: 44243)
DisputeGameFactory_SetImplementation_Test:test_setImplementation_succeeds() (gas: 44243)
DisputeGameFactory_TransferOwnership_Test:test_transferOwnership_notOwner_reverts() (gas: 15950)
DisputeGameFactory_TransferOwnership_Test:test_transferOwnership_notOwner_reverts() (gas: 15950)
DisputeGameFactory_TransferOwnership_Test:test_transferOwnership_succeeds() (gas: 18642)
DisputeGameFactory_TransferOwnership_Test:test_transferOwnership_succeeds() (gas: 18642)
FaultDisputeGame_Test:test_clockTimeExceeded_reverts() (gas: 264
74
)
FaultDisputeGame_Test:test_clockTimeExceeded_reverts() (gas: 264
96
)
FaultDisputeGame_Test:test_defendRoot_reverts() (gas: 132
80
)
FaultDisputeGame_Test:test_defendRoot_reverts() (gas: 132
36
)
FaultDisputeGame_Test:test_duplicateClaim_reverts() (gas: 103
381
)
FaultDisputeGame_Test:test_duplicateClaim_reverts() (gas: 103
425
)
FaultDisputeGame_Test:test_extraData_succeeds() (gas: 17478)
FaultDisputeGame_Test:test_extraData_succeeds() (gas: 17478)
FaultDisputeGame_Test:test_gameData_succeeds() (gas: 17859)
FaultDisputeGame_Test:test_gameData_succeeds() (gas: 17859)
FaultDisputeGame_Test:test_gameDepthExceeded_reverts() (gas: 59072
75
)
FaultDisputeGame_Test:test_gameDepthExceeded_reverts() (gas: 59072
31
)
FaultDisputeGame_Test:test_gameStart_succeeds() (gas: 10337)
FaultDisputeGame_Test:test_gameStart_succeeds() (gas: 10337)
FaultDisputeGame_Test:test_gameType_succeeds() (gas: 8
194
)
FaultDisputeGame_Test:test_gameType_succeeds() (gas: 8
259
)
FaultDisputeGame_Test:test_initialRootClaimData_succeeds() (gas: 17
580
)
FaultDisputeGame_Test:test_initialRootClaimData_succeeds() (gas: 17
624
)
FaultDisputeGame_Test:test_moveAgainstNonexistentParent_reverts() (gas: 246
09
)
FaultDisputeGame_Test:test_moveAgainstNonexistentParent_reverts() (gas: 246
32
)
FaultDisputeGame_Test:test_move_gameNotInProgress_reverts() (gas: 10945)
FaultDisputeGame_Test:test_move_gameNotInProgress_reverts() (gas: 10945)
FaultDisputeGame_Test:test_resolve_challenge
_contested() (gas: 222404
)
FaultDisputeGame_Test:test_resolve_challenge
Contested() (gas: 222383
)
FaultDisputeGame_Test:test_resolve_reverts() (gas: 271
43
)
FaultDisputeGame_Test:test_resolve_reverts() (gas: 271
21
)
FaultDisputeGame_Test:test_resolve_root
_contested() (gas: 107149
)
FaultDisputeGame_Test:test_resolve_root
Contested() (gas: 107225
)
FaultDisputeGame_Test:test_resolve_root
_uncontested() (gas: 24504
)
FaultDisputeGame_Test:test_resolve_root
Uncontested() (gas: 24459
)
FaultDisputeGame_Test:test_resolve_team
_deathmatch() (gas: 39361
9)
FaultDisputeGame_Test:test_resolve_team
Deathmatch() (gas: 39360
9)
FaultDisputeGame_Test:test_rootClaim_succeeds() (gas: 81
91
)
FaultDisputeGame_Test:test_rootClaim_succeeds() (gas: 81
69
)
FaultDisputeGame_Test:test_simpleAttack_succeeds() (gas: 107389)
FaultDisputeGame_Test:test_simpleAttack_succeeds() (gas: 107389)
FaultDisputeGame_Test:test_version_succeeds() (gas: 9
802
)
FaultDisputeGame_Test:test_version_succeeds() (gas: 9
780
)
FeeVault_Test:test_constructor_succeeds() (gas: 18185)
FeeVault_Test:test_constructor_succeeds() (gas: 18185)
GasBenchMark_L1CrossDomainMessenger:test_sendMessage_benchmark_0() (gas: 352113)
GasBenchMark_L1CrossDomainMessenger:test_sendMessage_benchmark_0() (gas: 352113)
GasBenchMark_L1CrossDomainMessenger:test_sendMessage_benchmark_1() (gas: 2950320)
GasBenchMark_L1CrossDomainMessenger:test_sendMessage_benchmark_1() (gas: 2950320)
...
...
packages/contracts-bedrock/contracts/test/FaultDisputeGame.t.sol
View file @
c10e8666
...
@@ -270,16 +270,16 @@ contract FaultDisputeGame_Test is DisputeGameFactory_Init {
...
@@ -270,16 +270,16 @@ contract FaultDisputeGame_Test is DisputeGameFactory_Init {
}
}
/**
/**
* @dev Static unit test for the correctness
of
resolution.
* @dev Static unit test for the correctness
an uncontested root
resolution.
*/
*/
function test_resolve_root
_u
ncontested() public {
function test_resolve_root
U
ncontested() public {
GameStatus status = gameProxy.resolve();
GameStatus status = gameProxy.resolve();
assertEq(uint8(status), uint8(GameStatus.DEFENDER_WINS));
assertEq(uint8(status), uint8(GameStatus.DEFENDER_WINS));
assertEq(uint8(gameProxy.status()), uint8(GameStatus.DEFENDER_WINS));
assertEq(uint8(gameProxy.status()), uint8(GameStatus.DEFENDER_WINS));
}
}
/**
/**
* @dev Static unit test
for the correctness of resolution
.
* @dev Static unit test
asserting that resolve reverts when the game is not in progress
.
*/
*/
function test_resolve_reverts() public {
function test_resolve_reverts() public {
gameProxy.resolve();
gameProxy.resolve();
...
@@ -288,9 +288,9 @@ contract FaultDisputeGame_Test is DisputeGameFactory_Init {
...
@@ -288,9 +288,9 @@ contract FaultDisputeGame_Test is DisputeGameFactory_Init {
}
}
/**
/**
* @dev Static unit test for the correctness of resol
ution
.
* @dev Static unit test for the correctness of resol
ving a single attack game state
.
*/
*/
function test_resolve_root
_c
ontested() public {
function test_resolve_root
C
ontested() public {
gameProxy.attack(0, Claim.wrap(bytes32(uint256(5))));
gameProxy.attack(0, Claim.wrap(bytes32(uint256(5))));
GameStatus status = gameProxy.resolve();
GameStatus status = gameProxy.resolve();
...
@@ -299,9 +299,9 @@ contract FaultDisputeGame_Test is DisputeGameFactory_Init {
...
@@ -299,9 +299,9 @@ contract FaultDisputeGame_Test is DisputeGameFactory_Init {
}
}
/**
/**
* @dev Static unit test for the correctness of resol
ution
.
* @dev Static unit test for the correctness of resol
ving a game with a contested challenge claim
.
*/
*/
function test_resolve_challenge
_c
ontested() public {
function test_resolve_challenge
C
ontested() public {
gameProxy.attack(0, Claim.wrap(bytes32(uint256(5))));
gameProxy.attack(0, Claim.wrap(bytes32(uint256(5))));
gameProxy.defend(1, Claim.wrap(bytes32(uint256(6))));
gameProxy.defend(1, Claim.wrap(bytes32(uint256(6))));
...
@@ -311,9 +311,9 @@ contract FaultDisputeGame_Test is DisputeGameFactory_Init {
...
@@ -311,9 +311,9 @@ contract FaultDisputeGame_Test is DisputeGameFactory_Init {
}
}
/**
/**
* @dev Static unit test for the correctness of resol
ution
.
* @dev Static unit test for the correctness of resol
ving a game with multiplayer moves
.
*/
*/
function test_resolve_team
_d
eathmatch() public {
function test_resolve_team
D
eathmatch() public {
gameProxy.attack(0, Claim.wrap(bytes32(uint256(5))));
gameProxy.attack(0, Claim.wrap(bytes32(uint256(5))));
gameProxy.attack(0, Claim.wrap(bytes32(uint256(4))));
gameProxy.attack(0, Claim.wrap(bytes32(uint256(4))));
gameProxy.defend(1, Claim.wrap(bytes32(uint256(6))));
gameProxy.defend(1, Claim.wrap(bytes32(uint256(6))));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment