Skip to content

feat(PocketIC): new struct PocketIcState #4708

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Apr 11, 2025
Merged

feat(PocketIC): new struct PocketIcState #4708

merged 13 commits into from
Apr 11, 2025

Conversation

mraszyk
Copy link
Contributor

@mraszyk mraszyk commented Apr 8, 2025

This PR introduces a new struct PocketIcState encapsulating the state directory of a PocketIC instance. This encapsulation is particularly useful when used with a temporary directory (the struct takes care of creating a new temporary directory and deleting it automatically) and also "documents" the flows (e.g., PocketIcBuilder::with_state takes ownership while PocketIcBuilder::with_read_only_state only takes a reference).

@github-actions github-actions bot added the feat label Apr 8, 2025
@mraszyk mraszyk marked this pull request as ready for review April 8, 2025 13:31
@mraszyk mraszyk requested a review from a team as a code owner April 8, 2025 13:31
@mraszyk mraszyk added this pull request to the merge queue Apr 11, 2025
Merged via the queue into master with commit 579b8ba Apr 11, 2025
22 checks passed
@mraszyk mraszyk deleted the mraszyk/pic-state branch April 11, 2025 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants