Skip to content

Commit cde5240

Browse files
committed
test(hcu): drop formatting-only churn in HCULimit tests
1 parent d001c2a commit cde5240

File tree

1 file changed

+48
-35
lines changed

1 file changed

+48
-35
lines changed

host-contracts/test/hcuLimit/HCULimit.t.sol

Lines changed: 48 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ contract HCULimitTest is Test, SupportedTypesConstants {
6060
function setUp() public {
6161
_deployAndEtchACL();
6262
/// @dev It uses UnsafeUpgrades for measuring code coverage.
63-
proxy =
64-
UnsafeUpgrades.deployUUPSProxy(address(new EmptyUUPSProxy()), abi.encodeCall(EmptyUUPSProxy.initialize, ()));
63+
proxy = UnsafeUpgrades.deployUUPSProxy(
64+
address(new EmptyUUPSProxy()),
65+
abi.encodeCall(EmptyUUPSProxy.initialize, ())
66+
);
6567

6668
implementation = address(new MockHCULimit());
6769
vm.startPrank(owner);
@@ -858,9 +860,10 @@ contract HCULimitTest is Test, SupportedTypesConstants {
858860
hcuLimit.checkHCUForFheRem(FheType(resultType), scalarByte, mockLHS, mockRHS, mockResult);
859861
}
860862

861-
function test_checkHCUForFheAddRevertsIfHCUTransationIsAboveHCUTransactionLimit(uint8 resultType, bytes1 scalarType)
862-
public
863-
{
863+
function test_checkHCUForFheAddRevertsIfHCUTransationIsAboveHCUTransactionLimit(
864+
uint8 resultType,
865+
bytes1 scalarType
866+
) public {
864867
vm.assume(resultType <= uint8(FheType.Int248));
865868
vm.assume(_isTypeSupported(FheType(resultType), supportedTypesFheAdd));
866869

@@ -871,9 +874,10 @@ contract HCULimitTest is Test, SupportedTypesConstants {
871874
hcuLimit.checkHCUForFheAdd(FheType(resultType), scalarType, mockLHS, mockRHS, mockResult);
872875
}
873876

874-
function test_checkHCUForFheSubRevertsIfHCUTransationIsAboveHCUTransactionLimit(uint8 resultType, bytes1 scalarType)
875-
public
876-
{
877+
function test_checkHCUForFheSubRevertsIfHCUTransationIsAboveHCUTransactionLimit(
878+
uint8 resultType,
879+
bytes1 scalarType
880+
) public {
877881
vm.assume(resultType <= uint8(FheType.Int248));
878882
vm.assume(_isTypeSupported(FheType(resultType), supportedTypesFheSub));
879883

@@ -884,9 +888,10 @@ contract HCULimitTest is Test, SupportedTypesConstants {
884888
hcuLimit.checkHCUForFheSub(FheType(resultType), scalarType, mockLHS, mockRHS, mockResult);
885889
}
886890

887-
function test_checkHCUForFheMulRevertsIfHCUTransationIsAboveHCUTransactionLimit(uint8 resultType, bytes1 scalarType)
888-
public
889-
{
891+
function test_checkHCUForFheMulRevertsIfHCUTransationIsAboveHCUTransactionLimit(
892+
uint8 resultType,
893+
bytes1 scalarType
894+
) public {
890895
vm.assume(resultType <= uint8(FheType.Int248));
891896
vm.assume(_isTypeSupported(FheType(resultType), supportedTypesFheMul));
892897

@@ -961,9 +966,10 @@ contract HCULimitTest is Test, SupportedTypesConstants {
961966
hcuLimit.checkHCUForFheBitXor(FheType(resultType), scalarType, mockLHS, mockRHS, mockResult);
962967
}
963968

964-
function test_checkHCUForFheShlRevertsIfHCUTransationIsAboveHCUTransactionLimit(uint8 resultType, bytes1 scalarType)
965-
public
966-
{
969+
function test_checkHCUForFheShlRevertsIfHCUTransationIsAboveHCUTransactionLimit(
970+
uint8 resultType,
971+
bytes1 scalarType
972+
) public {
967973
vm.assume(resultType <= uint8(FheType.Int248));
968974
vm.assume(_isTypeSupported(FheType(resultType), supportedTypesFheShl));
969975

@@ -974,9 +980,10 @@ contract HCULimitTest is Test, SupportedTypesConstants {
974980
hcuLimit.checkHCUForFheShl(FheType(resultType), scalarType, mockLHS, mockRHS, mockResult);
975981
}
976982

977-
function test_checkHCUForFheShrRevertsIfHCUTransationIsAboveHCUTransactionLimit(uint8 resultType, bytes1 scalarType)
978-
public
979-
{
983+
function test_checkHCUForFheShrRevertsIfHCUTransationIsAboveHCUTransactionLimit(
984+
uint8 resultType,
985+
bytes1 scalarType
986+
) public {
980987
vm.assume(resultType <= uint8(FheType.Int248));
981988
vm.assume(_isTypeSupported(FheType(resultType), supportedTypesFheShr));
982989

@@ -1015,9 +1022,10 @@ contract HCULimitTest is Test, SupportedTypesConstants {
10151022
hcuLimit.checkHCUForFheRotr(FheType(resultType), scalarType, mockLHS, mockRHS, mockResult);
10161023
}
10171024

1018-
function test_checkHCUForFheGeRevertsIfHCUTransationIsAboveHCUTransactionLimit(uint8 resultType, bytes1 scalarType)
1019-
public
1020-
{
1025+
function test_checkHCUForFheGeRevertsIfHCUTransationIsAboveHCUTransactionLimit(
1026+
uint8 resultType,
1027+
bytes1 scalarType
1028+
) public {
10211029
vm.assume(resultType <= uint8(FheType.Int248));
10221030
vm.assume(_isTypeSupported(FheType(resultType), supportedTypesFheGe));
10231031

@@ -1028,9 +1036,10 @@ contract HCULimitTest is Test, SupportedTypesConstants {
10281036
hcuLimit.checkHCUForFheGe(FheType(resultType), scalarType, mockLHS, mockRHS, mockResult);
10291037
}
10301038

1031-
function test_checkHCUForFheGtRevertsIfHCUTransationIsAboveHCUTransactionLimit(uint8 resultType, bytes1 scalarType)
1032-
public
1033-
{
1039+
function test_checkHCUForFheGtRevertsIfHCUTransationIsAboveHCUTransactionLimit(
1040+
uint8 resultType,
1041+
bytes1 scalarType
1042+
) public {
10341043
vm.assume(resultType <= uint8(FheType.Int248));
10351044
vm.assume(_isTypeSupported(FheType(resultType), supportedTypesFheGt));
10361045

@@ -1041,9 +1050,10 @@ contract HCULimitTest is Test, SupportedTypesConstants {
10411050
hcuLimit.checkHCUForFheGt(FheType(resultType), scalarType, mockLHS, mockRHS, mockResult);
10421051
}
10431052

1044-
function test_checkHCUForFheLeRevertsIfHCUTransationIsAboveHCUTransactionLimit(uint8 resultType, bytes1 scalarType)
1045-
public
1046-
{
1053+
function test_checkHCUForFheLeRevertsIfHCUTransationIsAboveHCUTransactionLimit(
1054+
uint8 resultType,
1055+
bytes1 scalarType
1056+
) public {
10471057
vm.assume(resultType <= uint8(FheType.Int248));
10481058
vm.assume(_isTypeSupported(FheType(resultType), supportedTypesFheLe));
10491059

@@ -1054,9 +1064,10 @@ contract HCULimitTest is Test, SupportedTypesConstants {
10541064
hcuLimit.checkHCUForFheLe(FheType(resultType), scalarType, mockLHS, mockRHS, mockResult);
10551065
}
10561066

1057-
function test_checkHCUForFheLtRevertsIfHCUTransationIsAboveHCUTransactionLimit(uint8 resultType, bytes1 scalarType)
1058-
public
1059-
{
1067+
function test_checkHCUForFheLtRevertsIfHCUTransationIsAboveHCUTransactionLimit(
1068+
uint8 resultType,
1069+
bytes1 scalarType
1070+
) public {
10601071
vm.assume(resultType <= uint8(FheType.Int248));
10611072
vm.assume(_isTypeSupported(FheType(resultType), supportedTypesFheLt));
10621073

@@ -1067,9 +1078,10 @@ contract HCULimitTest is Test, SupportedTypesConstants {
10671078
hcuLimit.checkHCUForFheLt(FheType(resultType), scalarType, mockLHS, mockRHS, mockResult);
10681079
}
10691080

1070-
function test_checkHCUForFheMinRevertsIfHCUTransationIsAboveHCUTransactionLimit(uint8 resultType, bytes1 scalarType)
1071-
public
1072-
{
1081+
function test_checkHCUForFheMinRevertsIfHCUTransationIsAboveHCUTransactionLimit(
1082+
uint8 resultType,
1083+
bytes1 scalarType
1084+
) public {
10731085
vm.assume(resultType <= uint8(FheType.Int248));
10741086
vm.assume(_isTypeSupported(FheType(resultType), supportedTypesFheMin));
10751087

@@ -1080,9 +1092,10 @@ contract HCULimitTest is Test, SupportedTypesConstants {
10801092
hcuLimit.checkHCUForFheMin(FheType(resultType), scalarType, mockLHS, mockRHS, mockResult);
10811093
}
10821094

1083-
function test_checkHCUForFheMaxRevertsIfHCUTransationIsAboveHCUTransactionLimit(uint8 resultType, bytes1 scalarType)
1084-
public
1085-
{
1095+
function test_checkHCUForFheMaxRevertsIfHCUTransationIsAboveHCUTransactionLimit(
1096+
uint8 resultType,
1097+
bytes1 scalarType
1098+
) public {
10861099
vm.assume(resultType <= uint8(FheType.Int248));
10871100
vm.assume(_isTypeSupported(FheType(resultType), supportedTypesFheMax));
10881101

0 commit comments

Comments
 (0)