[x] TestDifferentReceiverAndCreator redundant - tested in the message object unit tests
[x] TestFailUnrecognizedToken same as above
[x] TestInsufficientBalance same as above
[x] TestMultiTickLimitOrder1to0WithWithdraw redundant - swapping through multiple ticks of limit orders is tested in TestSwapOnlyLOExhaustFillAndPlace0to1Moves1to0
[x] TestMultiTickLimitOrder0to1WithWithdraw redundant - swapping through multiple ticks of limit orders is tested in TestSwapOnlyLOExhaustFillAndPlace0to1Moves0to1
[x] TestWithdrawFailsWhenNothingToWithdraw redundant - error tested in TestWithdrawFilledInvalidKeyToken
[x] TestFailsWhenWrongKey redundant
[x] move/refactor
[x] TestLimitOrderOverdraw needs to be replaced with a simpler test that checks withdrawFilled when filled is empty
[x] TestFailsWhenWithdrawNotCalledByOwner - this has bob withdraw from an existing tranche key, pair, tick without having a balance. should return something like "insufficient balance".
[x] TestFailsWhenWrongKeyToken needs to move to withdrawFilledLimitOrder_integration_test.go
[x] TestProgressiveLimitOrderFill refactored into TestWithdrawFilledPartial
[x] TestLimitOrderPartialFillDepositCancel moved to integration_placelimitorder_test.go
[x] keeper_integration_test.go no longer used - delete
[x] move out FundAccount to the internal lib since its used in the suites
[x] msg_server_deposit_test.go redundant?
[x] redundant
[x] TestSingleDepositDepositAmountZero
[x] move/refactor
[x] TestSingleDepositDepositFail - checks for passedDeposit == 0, replaced with TestDepositMultiCompleteFailure
[x] TestMultiDepositSingleFail - tests for partial failure, replaced with TestDepositMultiPartialFailureNoError (no error is only the case where one of the deposits is rounded down to 0,0)
[x] TestMultiDepositDepositFail - tests for complete failure, replaced with TestDepositMultiCompleteFailure
[x] TestMultiDepositAllSucceed - need to test multi deposit correct, replaced with TestDepositMultiSuccess
[x] msg_server_withdrawl_test.go
[x] redundant
[x] TestSingleWithdrawlPartial
[x] TestSingleWithdrawlFull
[x] TestSingleWithdrawlMaxFee
[x] TestSingleWithdrawlSingleSide
[x] TestSingleWithdrawlShiftsTickRight
[x] TestSingleWithdrawlShiftsTickLeft
[x] move/refactor
[x] TestMultiWithdrawlShiftsTickLeft - replace with TestWithdrawMultiSuccess
[x] TestWithdrawalFailsWhenNotEnoughShares
[x] TestWithdrawalFailsWithNonExistentPair
[x] TestWithdrawalFailsWithInvalidTick
[x] TestWithdrawalFailsWithInvalidFee
tests to add
[x] deposit
[x] TestDepositMultiPartialFailureTrueAmounts
[x] withdraw
[x] TestWithdrawMultiFailure
test files to rename
[x] rename all function_testtype_unit_test.go to integration_function_testtype_test.go
testing suites
[x] separate test suite for core helpers
[x] MsgServerTestSuite
[x] redundant/unused helpers
[x] addTickWithFee0Tokens
[x] remove epsilon helpers
[x] remove usage of epsilon helpers
[x] add/fix
[x] withdraw/withdrawFails should match the rest of the helpers, i.e. instead of returning error should have declarative wrappers too
calculations to simplify out
[x] integration_swap_onlylimitorder_test.go change swap helper calculation to values
msg server test coverage
MsgServer unit tests list
tests to move/delete
x/dex/keeper/msg_server_limit_test.go
TestSingle
redundantTestMultiple
redundantTestDifferentReceiverAndCreator
redundant - tested in the message object unit testsTestFailUnrecognizedToken
same as aboveTestInsufficientBalance
same as aboveTestMultiTickLimitOrder1to0WithWithdraw
redundant - swapping through multiple ticks of limit orders is tested inTestSwapOnlyLOExhaustFillAndPlace0to1Moves1to0
TestMultiTickLimitOrder0to1WithWithdraw
redundant - swapping through multiple ticks of limit orders is tested inTestSwapOnlyLOExhaustFillAndPlace0to1Moves0to1
TestWithdrawFailsWhenNothingToWithdraw
redundant - error tested inTestWithdrawFilledInvalidKeyToken
TestFailsWhenWrongKey
redundantTestLimitOrderOverdraw
needs to be replaced with a simpler test that checkswithdrawFilled
when filled is emptyTestFailsWhenWithdrawNotCalledByOwner
- this has bob withdraw from an existing tranche key, pair, tick without having a balance. should return something like "insufficient balance".TestFailsWhenWrongKeyToken
needs to move towithdrawFilledLimitOrder_integration_test.go
TestProgressiveLimitOrderFill
refactored intoTestWithdrawFilledPartial
TestLimitOrderPartialFillDepositCancel
moved tointegration_placelimitorder_test.go
keeper_integration_test.go
no longer used - deleteFundAccount
to the internal lib since its used in the suitesmsg_server_deposit_test.go
redundant?TestSingleDepositDepositAmountZero
TestSingleDepositDepositFail
- checks forpassedDeposit == 0
, replaced withTestDepositMultiCompleteFailure
TestMultiDepositSingleFail
- tests for partial failure, replaced withTestDepositMultiPartialFailureNoError
(no error is only the case where one of the deposits is rounded down to0,0
)TestMultiDepositDepositFail
- tests for complete failure, replaced withTestDepositMultiCompleteFailure
TestMultiDepositAllSucceed
- need to test multi deposit correct, replaced withTestDepositMultiSuccess
msg_server_withdrawl_test.go
TestSingleWithdrawlPartial
TestSingleWithdrawlFull
TestSingleWithdrawlMaxFee
TestSingleWithdrawlSingleSide
TestSingleWithdrawlShiftsTickRight
TestSingleWithdrawlShiftsTickLeft
TestMultiWithdrawlShiftsTickLeft
- replace withTestWithdrawMultiSuccess
TestWithdrawalFailsWhenNotEnoughShares
TestWithdrawalFailsWithNonExistentPair
TestWithdrawalFailsWithInvalidTick
TestWithdrawalFailsWithInvalidFee
tests to add
TestDepositMultiPartialFailureTrueAmounts
TestWithdrawMultiFailure
test files to rename
function_testtype_unit_test.go
tointegration_function_testtype_test.go
testing suites
MsgServerTestSuite
addTickWithFee0Tokens
withdraw
/withdrawFails
should match the rest of the helpers, i.e. instead of returning error should have declarative wrappers toocalculations to simplify out
integration_swap_onlylimitorder_test.go
change swap helper calculation to valuesTestSwapOnlyLOPartiallyFilledSlippageToleranceNotReachedMaxReached
TestSwapOnlyLOPartiallyFilledSlippageToleranceNotReachedMinReached
TestSwapOnlyLOCorrectExecution1to0
TestSwapOnlyLOCorrectExecution0to1
TestSwapOnlyLOPartiallyFilledCorrectExecution
TestSwapOnlyLOExhaustLOCorrectExecution
integration_swap_nolimitorder_test.go
TestSwapNoLOCorrectExecutionMinFeeTier
TestSwapNoLOCorrectExecutionMaxFeeTier
TestSwapNoLOCorrectExecutionSomeFeeTiers
TestSwapNoLOPartiallyFilledSlippageToleranceNotReachedMaxReached
TestSwapNoLOPartiallyFilledSlippageToleranceNotReachedMinReached
test_helpers.go
MultipleLimitOrderFills
is used inmsg_server_limit_test.go
SharesOnDeposit
is used inwithdrawCore_integration_test.go