-
Notifications
You must be signed in to change notification settings - Fork 224
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(zk): enable SelectorReplacerTest.Selector
test on optimization mode
#374
test(zk): enable SelectorReplacerTest.Selector
test on optimization mode
#374
Conversation
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
… mode `ReplaceSelectors()` only crashes only when compiled with debug mode, so this commit enables it using `EXPECT_DEBUG_DEATH`. ```c++ template <typename F> class SelectorsReplacer : public Evaluator<F, std::unique_ptr<Expression<F>>> { std::unique_ptr<Expression<F>> Evaluate(const Expression<F>* input) override { if (selector.is_simple()) { LOG(DFATAL) << "Simple selector found in lookup argument"; } } ``` Related: #370
5c53be7
to
b9c42bf
Compare
This PR fixes the issue in which running |
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.
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.
LGTM
Description
ReplaceSelectors()
only crashes only when compiled with debug mode, so this commit enables it usingEXPECT_DEBUG_DEATH
.