Skip to content

Add utilities to test persistence #300

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

110CodingP
Copy link

Description

Added some basic functions to test WalletPersister impl. Fixes #14 and might help with #234 .

Changelog notice

Added
    - functions to test `WalletPersister` impl of custom persistence backends.
    - tests for file_store and rusqlite based on persistence testing functions added

Checklists

All Submissions:

New Features:

  • I've added tests for the new feature
  • I've added docs for the new feature

Added the following functions:-
  - `persist_wallet_changeset`: tests if each field of wallet ChangeSet
  is persisted.
  - `persist_multiple_wallet_changesets`: tests if multiple wallets can
  be persisted in a single file.
  - `persist_network`: tests if network is persisted
  - `persist_keychains`: tests if descriptors are persisted
  - `persist_single_keychain`: tests if descriptor in single keychain
  wallet is persisted.
Used persist_test_utils to test WalletPersister impl of file_store and
rusqlite.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

Persister test suite for testing redb persister
2 participants