-
Notifications
You must be signed in to change notification settings - Fork 17
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 key manager unit tests, add Web5Error::Mutex #304
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me
bound/kt/src/test/kotlin/web5/sdk/crypto/keys/InMemoryKeyManagerTest.kt
Outdated
Show resolved
Hide resolved
public_jwk.d = None; | ||
|
||
let result = key_manager.import_private_jwk(public_jwk); | ||
assert!(result.is_err()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: instead of asserting is_err()
and is_ok()
, how do you feel about expect_err("private_jwk must be a private key")
and expect("whatever the helpful error message is")
? slightly tighter than asserting Ok/Err than unwrapping in the following line
Need to rebase and use the latest from #303 prior to merging this (remove all instances of LazyLock!) |
cc4b3f5
to
9568f26
Compare
No description provided.