Priority: Medium
Estimated Time: 15 minutes
Description:
No test explicitly verifies that cancel_match returns Error::InvalidState when called on a Completed match. The guard exists in code but is untested for this specific state.
Tasks:
- Create match, both players deposit, call
submit_result to complete it
- Call
try_cancel_match on the completed match
- Assert
Err(Ok(Error::InvalidState))
Priority: Medium
Estimated Time: 15 minutes
Description:
No test explicitly verifies that
cancel_matchreturnsError::InvalidStatewhen called on aCompletedmatch. The guard exists in code but is untested for this specific state.Tasks:
submit_resultto complete ittry_cancel_matchon the completed matchErr(Ok(Error::InvalidState))