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

Add unit tests for anoncreds revocation #2688

Merged
merged 1 commit into from
Dec 22, 2023

Conversation

jamshale
Copy link
Contributor

@jamshale jamshale commented Dec 21, 2023

Adds unit testing for the anoncreds revocation module.

Tried to use the anoncred module as much as possible but when I was having too much trouble I mocked calls that loaded/created objects or converted forms.

Mocked the database/wallet Entry responses a lot with basic classes. Couldn't find a better way to do this or an examples in the repo.

Coverage is 92%. I tried not to make the tests too brittle but wanted to have good coverage for my own understanding. I'm hoping this will help others trying to understand the code along with having a good testing layout for future refactoring or features.

@swcurran swcurran requested review from dbluhm and ianco December 21, 2023 22:30
Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@jamshale jamshale marked this pull request as ready for review December 22, 2023 00:40
@jamshale jamshale linked an issue Dec 22, 2023 that may be closed by this pull request
Copy link
Contributor

@ianco ianco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice!!!

@swcurran swcurran merged commit 6d7a1ba into openwallet-foundation:main Dec 22, 2023
8 checks passed
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.

Anoncreds - Unit test revocation module
3 participants