Skip to content

Commit

Permalink
style: update formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulRBerg committed Aug 12, 2024
1 parent 01872ac commit d276e4c
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 15 deletions.
4 changes: 3 additions & 1 deletion src/PRBProxyRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@ contract PRBProxyRegistry is IPRBProxyRegistry {
}

/// @inheritdoc IPRBProxyRegistry
function deployAndInstallPlugin(IPRBProxyPlugin plugin)
function deployAndInstallPlugin(
IPRBProxyPlugin plugin
)
external
onlyNonProxyOwner(msg.sender)
returns (IPRBProxy proxy)
Expand Down
36 changes: 27 additions & 9 deletions test/proxy/execute/execute.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,9 @@ contract Execute_Test is Proxy_Test {
_;
}

function testFuzz_Execute_ReturnAddress(address input)
function testFuzz_Execute_ReturnAddress(
address input
)
external
whenCallerAuthorized
whenTargetContract
Expand All @@ -225,7 +227,9 @@ contract Execute_Test is Proxy_Test {
assertEq(actualResponse, expectedResponse, "echo.echoAddress response mismatch");
}

function testFuzz_Execute_ReturnBytesArray(bytes memory input)
function testFuzz_Execute_ReturnBytesArray(
bytes memory input
)
external
whenCallerAuthorized
whenTargetContract
Expand All @@ -240,7 +244,9 @@ contract Execute_Test is Proxy_Test {
assertEq(actualResponse, expectedResponse, "echo.echoBytesArray response mismatch");
}

function testFuzz_Execute_ReturnBytes32(bytes32 input)
function testFuzz_Execute_ReturnBytes32(
bytes32 input
)
external
whenCallerAuthorized
whenTargetContract
Expand All @@ -255,7 +261,9 @@ contract Execute_Test is Proxy_Test {
assertEq(actualResponse, expectedResponse, "echo.echoBytes32 response mismatch");
}

function testFuzz_Execute_ReturnString(string memory input)
function testFuzz_Execute_ReturnString(
string memory input
)
external
whenCallerAuthorized
whenTargetContract
Expand All @@ -270,7 +278,9 @@ contract Execute_Test is Proxy_Test {
assertEq(actualResponse, expectedResponse, "echo.echoString response mismatch");
}

function testFuzz_Execute_ReturnStruct(TargetEcho.SomeStruct memory input)
function testFuzz_Execute_ReturnStruct(
TargetEcho.SomeStruct memory input
)
external
whenCallerAuthorized
whenTargetContract
Expand All @@ -285,7 +295,9 @@ contract Execute_Test is Proxy_Test {
assertEq(actualResponse, expectedResponse, "echo.echoStruct response mismatch");
}

function testFuzz_Execute_ReturnUint8(uint8 input)
function testFuzz_Execute_ReturnUint8(
uint8 input
)
external
whenCallerAuthorized
whenTargetContract
Expand All @@ -300,7 +312,9 @@ contract Execute_Test is Proxy_Test {
assertEq(actualResponse, expectedResponse, "echo.echoUint8 response mismatch");
}

function testFuzz_Execute_ReturnUint256(uint256 input)
function testFuzz_Execute_ReturnUint256(
uint256 input
)
external
whenCallerAuthorized
whenTargetContract
Expand All @@ -315,7 +329,9 @@ contract Execute_Test is Proxy_Test {
assertEq(actualResponse, expectedResponse, "echo.echoUint256 response mismatch");
}

function testFuzz_Execute_ReturnUint256Array(uint256[] memory input)
function testFuzz_Execute_ReturnUint256Array(
uint256[] memory input
)
external
whenCallerAuthorized
whenTargetContract
Expand All @@ -330,7 +346,9 @@ contract Execute_Test is Proxy_Test {
assertEq(actualResponse, expectedResponse, "echo.echoUint256Array response mismatch");
}

function testFuzz_Execute_Event(uint256 input)
function testFuzz_Execute_Event(
uint256 input
)
external
whenCallerAuthorized
whenTargetContract
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ contract DeployAndExecuteAndInstallPlugin_Test is Registry_Test {
assertEq(actualOwner, expectedOwner, "proxy owner mismatch");
}

function testFuzz_DeployAndExecuteAndInstallPlugin_UpdateProxies(address owner)
function testFuzz_DeployAndExecuteAndInstallPlugin_UpdateProxies(
address owner
)
external
whenOwnerDoesNotHaveProxy
{
Expand All @@ -70,7 +72,9 @@ contract DeployAndExecuteAndInstallPlugin_Test is Registry_Test {
}
}

function testFuzz_DeployAndExecuteAndInstallPlugin_PluginReverseMapping(address owner)
function testFuzz_DeployAndExecuteAndInstallPlugin_PluginReverseMapping(
address owner
)
external
whenOwnerDoesNotHaveProxy
{
Expand All @@ -82,7 +86,9 @@ contract DeployAndExecuteAndInstallPlugin_Test is Registry_Test {
assertEq(actualMethods, expectedMethods, "methods not saved in reverse mapping");
}

function testFuzz_DeployAndExecuteAndInstallPlugin_Event_DeployProxy(address owner)
function testFuzz_DeployAndExecuteAndInstallPlugin_Event_DeployProxy(
address owner
)
external
whenOwnerDoesNotHaveProxy
{
Expand All @@ -93,7 +99,9 @@ contract DeployAndExecuteAndInstallPlugin_Test is Registry_Test {
registry.deployAndExecuteAndInstallPlugin(target, data, plugins.basic);
}

function testFuzz_DeployAndExecuteAndInstallPlugin_Event_Execute(address owner)
function testFuzz_DeployAndExecuteAndInstallPlugin_Event_Execute(
address owner
)
external
whenOwnerDoesNotHaveProxy
{
Expand All @@ -104,7 +112,9 @@ contract DeployAndExecuteAndInstallPlugin_Test is Registry_Test {
registry.deployAndExecuteAndInstallPlugin(target, data, plugins.basic);
}

function testFuzz_DeployAndExecuteAndInstallPlugin_Event_InstallPlugin(address owner)
function testFuzz_DeployAndExecuteAndInstallPlugin_Event_InstallPlugin(
address owner
)
external
whenOwnerDoesNotHaveProxy
{
Expand Down

0 comments on commit d276e4c

Please sign in to comment.