Summary
initialize() validates total_amount <= 0 but the existing test_invalid_config_rejected only tests cliff > duration. There is no test explicitly covering the total_amount = 0 and total_amount = -1 cases which are the other two InvalidConfig branches.
Tasks
Labels: testing, forge-vesting
Summary
initialize()validatestotal_amount <= 0but the existingtest_invalid_config_rejectedonly testscliff > duration. There is no test explicitly covering thetotal_amount = 0andtotal_amount = -1cases which are the other twoInvalidConfigbranches.Tasks
initialize()withtotal_amount = 0— assertErr(VestingError::InvalidConfig)initialize()withtotal_amount = -1— assertErr(VestingError::InvalidConfig)initialize()withduration_seconds = 0— assertErr(VestingError::InvalidConfig)initialize()succeeds after the failed attemptsLabels:
testing,forge-vesting