-
Notifications
You must be signed in to change notification settings - Fork 242
Added more tests to the Fabric plugin for 100% coverage #261
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
Conversation
internal/blockchain/fabric/certs.go
Outdated
|
|
||
| // borrowed from fabric-chaincode-go to guarantee the same | ||
| // resolution of "DN" string from x509 certs | ||
| // https://github.com/hyperledger/fabric-chaincode-go/blob/main/pkg/cid/cid.go |
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.
Is this link still relevant now that most of the method has been removed and replaced with the existing .String() behavior?
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.
good catch, not any longer
| r <- []byte(`!badjson`) // ignored bad json | ||
| r <- []byte(`"not an object"`) // ignored wrong type | ||
| r <- data | ||
| e.ctx.Done() |
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.
Can we check anything to validate that the events were actually processed?
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.
not easily, as no actions are taken in the error branches except logging an error.
Codecov Report
@@ Coverage Diff @@
## main #261 +/- ##
===========================================
+ Coverage 99.53% 100.00% +0.46%
===========================================
Files 217 217
Lines 12181 12212 +31
===========================================
+ Hits 12124 12212 +88
+ Misses 42 0 -42
+ Partials 15 0 -15
Continue to review full report at Codecov.
|
awrichar
left a comment
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 pretty good to me. I left some minor comments - you can decide if they warrant any extra tweaks.
Signed-off-by: Jim Zhang <jim.zhang@kaleido.io>
4a73d36 to
8b7212d
Compare
No description provided.