| 71 | } |
| 72 | |
| 73 | std::unique_ptr<DirectExpressionStep> MockExpectCallDirectStep() { |
| 74 | auto* mock = new NiceMock<MockDirectStep>(); |
| 75 | EXPECT_CALL(*mock, Evaluate) |
| 76 | .Times(1) |
| 77 | .WillRepeatedly( |
| 78 | [](ExecutionFrameBase& frame, Value& result, AttributeTrail& attr) { |
| 79 | result = ErrorValue(absl::InternalError("expected to be unused")); |
| 80 | return absl::OkStatus(); |
| 81 | }); |
| 82 | return absl::WrapUnique(mock); |
| 83 | } |
| 84 | |
| 85 | class OptionalOrTest : public testing::Test { |
| 86 | public: |
no test coverage detected