-
Notifications
You must be signed in to change notification settings - Fork 28
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
Conversation
Signed-off-by: Orie Steele <[email protected]>
d153ce2
to
223b104
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. 🚀 New features to boost your workflow:
|
Thanks @OR13, |
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.
awesome!
I left a couple of typo notes inline.
if verify_error != nil { | ||
t.Fatalf("Verification failed") | ||
} else { | ||
// fmt.Println(cbor.Diagnose(signature)) |
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.
This is a beauty, isn't it?
Ping to @OR13 if you'd like to make the changes Thomas suggested #209 (comment) |
@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. |
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.
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:
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]>
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.
LGTM
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