-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Combine testComplexCast
with testCast
#8254
Conversation
✅ Deploy Preview for meta-velox canceled.
|
d209f33
to
8aa8fea
Compare
d70060d
to
fd3d9a7
Compare
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. Thank you for helping clean up redundant code!
evaluateAndVerify( | ||
fromType, | ||
toType, | ||
makeRowVector({constInput}), |
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: use constantRow here?
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.
Thanks. Updated.
} else { | ||
evaluateAndVerify(fromType, toType, constantRow, constExpected); | ||
evaluateAndVerify( | ||
fromType, toType, makeRowVector({constInput}), constExpected, true); |
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: use constantRow instead of makeRowVector({constInput}) here?
@kagamiori has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@kagamiori has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@kagamiori has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@kagamiori merged this pull request in 860e35b. |
Conbench analyzed the 1 benchmark run on commit There weren't enough matching historic benchmark results to make a call on whether there were regressions. The full Conbench report has more details. |
Combines
testComplexCast
andtestCast
into one to reduce redundantinterfaces. Some differences, including the test of input vector not being
changed after the evaluation, and caller specified nullOnFailure test, are
supported in
testCast
method. RemovesfromType
andtoType
parametersfrom
testCast
method, as they can be deduced from input and expectedvectors.