Skip to content

Commit

Permalink
Add test case for 100% line coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominator008 committed Aug 31, 2023
1 parent 43fc6c3 commit ef7ff13
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion test/unit-tests/MultiMessageSender.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,18 @@ contract MultiMessageSenderTest is Setup {
vm.startPrank(caller);

vm.expectRevert(Error.CALLER_NOT_OWNER.selector);
sender.addSenderAdapters(new address[](0));
sender.addSenderAdapters(new address[](42));
}

/// @dev cannot add adapter with zero address
function test_add_sender_adapters_zero_address_input() public {
vm.startPrank(owner);

address[] memory adapters = new address[](1);
adapters[0] = address(0);

vm.expectRevert(Error.ZERO_ADDRESS_INPUT.selector);
sender.addSenderAdapters(adapters);
}

/// @dev cannot add duplicate adapters
Expand Down

0 comments on commit ef7ff13

Please sign in to comment.