-
Notifications
You must be signed in to change notification settings - Fork 459
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
test: Add test covg for Maybe<T> #1270
Conversation
test/maybe/check.cc
Outdated
@@ -6,18 +7,63 @@ using namespace Napi; | |||
namespace { | |||
|
|||
void VoidCallback(const CallbackInfo& info) { | |||
Function fn = info[0].As<Function>(); | |||
Napi::Function fn = info[0].As<Function>(); | |||
Maybe<Value> fn_m = fn.Call({}); |
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 variable represents the return value of the fn invocation. Might be worth to name it with prefix like ret
, rather than fn
.
Maybe<Value> fn_m = fn.Call({}); | |
Maybe<Value> ret_m = fn.Call({}); |
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.
Updated the PR to fix this.
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
…n-api into add-test-covg-for-maybe
Add test coverage for #1046