Skip to content

Add test for JWK marshalling.#15

Merged
leelynne merged 4 commits into
mainfrom
leef-jwk-fix1
May 5, 2025
Merged

Add test for JWK marshalling.#15
leelynne merged 4 commits into
mainfrom
leef-jwk-fix1

Conversation

@leelynne

@leelynne leelynne commented May 5, 2025

Copy link
Copy Markdown
Collaborator

No description provided.

Sidekick and others added 4 commits May 3, 2025 14:05
Create the TestJWKMarshalRoundTrip function in jwk_test.go with a table-driven test structure. Define test cases for EC and symmetric keys using the existing test data files. Include test struct fields for name, input file, and any error expectations.
Inside the test function's range loop, implement the round trip verification: 1) Read the initial JWK, 2) Marshal it to JSON, 3) Unmarshal back to a new JWK, 4) Compare the JWKs using Diff with cmpopts.IgnoreUnexported.
@leelynne leelynne self-assigned this May 5, 2025
@leelynne
leelynne merged commit d13e85e into main May 5, 2025
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