MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / MockExpectCallDirectStep

Function MockExpectCallDirectStep

eval/eval/optional_or_step_test.cc:73–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73std::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
85class OptionalOrTest : public testing::Test {
86 public:

Callers 1

TEST_FFunction · 0.85

Calls 2

ErrorValueFunction · 0.85
WrapUniqueFunction · 0.85

Tested by

no test coverage detected