Skip to content

test(data_store): add tests for remove_u128, remove_bytes32, increment_u128, decrement_u128 (#574) - #671

Open
VedantMadane wants to merge 1 commit into
SO4-Markets:mainfrom
VedantMadane:test-574-data-store-missing-accessor-tests
Open

test(data_store): add tests for remove_u128, remove_bytes32, increment_u128, decrement_u128 (#574)#671
VedantMadane wants to merge 1 commit into
SO4-Markets:mainfrom
VedantMadane:test-574-data-store-missing-accessor-tests

Conversation

@VedantMadane

Copy link
Copy Markdown

Summary

This PR addresses the test coverage gap in data_store accessors:

  • Implemented remove_bytes32 on DataStore to match its sibling removal functions (remove_i128, remove_address, remove_bool, remove_u128).
  • Added unit tests exercising remove_u128, remove_bytes32, increment_u128, and decrement_u128.
  • Added failure/panic tests for unauthorized callers on all four functions and underflow on decrement_u128.

Closes #574

…t_u128, decrement_u128 (SO4-Markets#574)

- Implement \
emove_bytes32\ on \DataStore\ to match its sibling removal functions
- Add unit tests for \
emove_u128\, \
emove_bytes32\, \increment_u128\, \decrement_u128\
- Add unauthorized caller and underflow panic tests for each function

Signed-off-by: Vedant Madane <6527493+VedantMadane@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

data_store: remove_u128, remove_bytes32, increment_u128, decrement_u128 are unused and untested, unlike their tested sibling remove_* functions

1 participant