Skip to content
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

Implement mockable in-memory database #332

Open
afterdusk opened this issue Jan 3, 2023 · 1 comment
Open

Implement mockable in-memory database #332

afterdusk opened this issue Jan 3, 2023 · 1 comment

Comments

@afterdusk
Copy link
Member

This would be helpful in tests to assert expected database access patterns. For example, if unexpected reads or writes are performed. See:

slawlor added a commit to slawlor/akd that referenced this issue Jan 3, 2023
slawlor added a commit to slawlor/akd that referenced this issue Jan 4, 2023
slawlor added a commit that referenced this issue Jan 4, 2023
* Adding mock support for the Database trait in AKD

Related to: #332

* adding a mocked database test

* Move to Arc in StorageManager so we can clone it cleanly.

* Make storage manager create and manage the Arc

* Bump version for contract changes
@slawlor
Copy link
Contributor

slawlor commented Jan 12, 2023

@afterdusk I think we now support the mocks, but I guess do we want to leave this task open to implement the test adjustments we want now?

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

No branches or pull requests

2 participants