Skip to content

test/unit/util/crypto: split tests for hash & verify#1819

Merged
alxndrsn merged 1 commit into
getodk:masterfrom
alxndrsn:lib-crypto-unit-fix
Apr 28, 2026
Merged

test/unit/util/crypto: split tests for hash & verify#1819
alxndrsn merged 1 commit into
getodk:masterfrom
alxndrsn:lib-crypto-unit-fix

Conversation

@alxndrsn
Copy link
Copy Markdown
Contributor

@alxndrsn alxndrsn commented Apr 27, 2026

  • previously hashPassword() and verifyPassword() were included in the same describe() block
  • in ea188f4, one test for verify was mistakenly changed to hash

Ref #1804

What has been done to verify that this works as intended?

Tests!

Why is this the best possible solution? Were any other approaches considered?

If the unit tests are useful, then they should be correct.

How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?

No effect - just tests.

Does this change require updates to the API documentation? If so, please update docs/api.yaml as part of this PR.

No.

Before submitting this PR, please make sure you have:

  • run make test and confirmed all checks still pass, or witnessed Github completing all checks with success
  • verified that any code from external sources are properly credited in comments or that everything is internally sourced

* previously `hashPassword()` and `verifyPassword()` were included in the same `describe()` block
* in ea188f4, one test for verify was mistakenly changed to hash
@alxndrsn alxndrsn marked this pull request as ready for review April 27, 2026 12:16
@alxndrsn alxndrsn merged commit 87237ce into getodk:master Apr 28, 2026
5 of 6 checks passed
@alxndrsn alxndrsn deleted the lib-crypto-unit-fix branch April 28, 2026 12:36
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.

2 participants