-
Notifications
You must be signed in to change notification settings - Fork 10
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
fix serial/deserialization of presentation definitions #90
Conversation
Codecov Report
@@ Coverage Diff @@
## main #90 +/- ##
==========================================
+ Coverage 56.73% 61.55% +4.82%
==========================================
Files 20 20
Lines 832 822 -10
Branches 99 100 +1
==========================================
+ Hits 472 506 +34
+ Misses 313 269 -44
Partials 47 47
|
|
||
@Test | ||
fun `can deserialize`() { | ||
val pdString = """ |
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.
Would recommend splitting the json into a separate file.
.setSerializationInclusion(JsonInclude.Include.NON_NULL) | ||
|
||
@Test | ||
fun `can serialize`() { |
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.
One additional test that I find very useful is around idempotency. See https://github.com/TBD54566975/web5-kt/blob/a8d10d9fa92226d2432dbb8fd85f9a46792bf5be/dids/src/test/kotlin/web5/sdk/dids/DidResolutionResultTest.kt#L13 for an example. It makes sure that data isn't lost in the round trip.
No description provided.