-
Notifications
You must be signed in to change notification settings - Fork 214
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
Add support for getting info from Invoke statements #383
Conversation
Codecov Report
@@ Coverage Diff @@
## master #383 +/- ##
==========================================
+ Coverage 98.35% 98.36% +0.01%
==========================================
Files 21 21
Lines 1458 1471 +13
==========================================
+ Hits 1434 1447 +13
Misses 15 15
Partials 9 9
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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
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.
New API looks and the implementation looks fine.
invoke.go
Outdated
} | ||
|
||
// FillInvokeInfo is an InvokeOption that writes info on the types requested | ||
// by the Invoke function into the specified InvokeInfo. |
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.
nit: "accepted by the Invoke function"
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.
👍
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.
From group code review
This commit exposes InvokeInfo and FillInvokeInfo to help users extract the types requested by an Invoke statement. Example usage - var info InvokeInfo c.Invoke(func(typ1 type1, typ2 type2){}, FillInvokeInfo(&info)) // Will print the types requested by the Invoke statement for _, typ := range info.ReqTypes { fmt.Println(typ) } Refs: GO-669
@JacobOaks just to say that I have added outputs in the invoke information #395 |
This commit exposes
InvokeInfo
andFillInvokeInfo
to help users extract the types requested by an Invoke statement.Example usage -
Refs: GO-669