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

Update custom algorithms example #209

Merged
merged 3 commits into from
Mar 28, 2025
Merged

Update custom algorithms example #209

merged 3 commits into from
Mar 28, 2025

Conversation

OR13
Copy link
Contributor

@OR13 OR13 commented Oct 28, 2024

This pull request updates the readme section describing custom algorithms, and provides an example test.

The current instructions in this section are not very helpful:

https://github.com/search?q=repo%3Averaison%2Fgo-cose%20RegisterAlgorithm&type=code

@OR13 OR13 force-pushed the custom-signer-example branch from d153ce2 to 223b104 Compare October 28, 2024 20:09
Copy link

codecov bot commented Oct 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.46%. Comparing base (92fbe95) to head (52c0aed).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #209      +/-   ##
==========================================
+ Coverage   92.35%   92.46%   +0.11%     
==========================================
  Files          12       12              
  Lines        1622     2071     +449     
==========================================
+ Hits         1498     1915     +417     
- Misses         68       94      +26     
- Partials       56       62       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@SteveLasker
Copy link
Contributor

Thanks @OR13,
Can we get some 👀's from some of the other maintainers?

Copy link
Contributor

@thomas-fossati thomas-fossati left a comment

Choose a reason for hiding this comment

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

awesome!

I left a couple of typo notes inline.

if verify_error != nil {
t.Fatalf("Verification failed")
} else {
// fmt.Println(cbor.Diagnose(signature))
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a beauty, isn't it?

@SteveLasker
Copy link
Contributor

Ping to @OR13 if you'd like to make the changes Thomas suggested #209 (comment)

@SteveLasker SteveLasker added the pending-close Pending closure with no recent activity label Jan 31, 2025
@SteveLasker
Copy link
Contributor

@thomas-fossati, I see you approved the PR, but left some open comments/suggestions. If you and @OR13 can arrive at a consensus, we can merge, or close the pr.
Thank you

Copy link
Contributor

@shizhMSFT shizhMSFT left a comment

Choose a reason for hiding this comment

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

It would be better if we can put this example as a golang example, which can be rendered and viewable in godoc.

You may create a file named example_algorithm_test.go with a function Example_customAlgorithm().

Please read the following reference for details:

SteveLasker and others added 2 commits March 28, 2025 17:21
Co-authored-by: Thomas Fossati <[email protected]>
Signed-off-by: Steve Lasker <[email protected]>
Co-authored-by: Thomas Fossati <[email protected]>
Signed-off-by: Steve Lasker <[email protected]>
Copy link
Contributor

@SteveLasker SteveLasker left a comment

Choose a reason for hiding this comment

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

LGTM

@SteveLasker SteveLasker merged commit eb9cdec into main Mar 28, 2025
6 checks passed
@SteveLasker SteveLasker deleted the custom-signer-example branch March 28, 2025 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-close Pending closure with no recent activity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants