/proc/self/cwd/test/mocks/upstream/cluster.cc
Line | Count | Source (jump to first uncovered line) |
1 | | #include "cluster.h" |
2 | | |
3 | | #include "gmock/gmock.h" |
4 | | #include "gtest/gtest.h" |
5 | | |
6 | | namespace Envoy { |
7 | | namespace Upstream { |
8 | | using ::testing::_; |
9 | | using ::testing::Invoke; |
10 | | using ::testing::Return; |
11 | 44.2k | MockCluster::MockCluster() { |
12 | 44.2k | ON_CALL(*this, info()).WillByDefault(Return(info_)); |
13 | 44.2k | ON_CALL(*this, initialize(_)) |
14 | 44.2k | .WillByDefault(Invoke([this](std::function<void()> callback) -> void { |
15 | 0 | EXPECT_EQ(nullptr, initialize_callback_); |
16 | 0 | initialize_callback_ = callback; |
17 | 0 | })); |
18 | 44.2k | } |
19 | | |
20 | 44.2k | MockCluster::~MockCluster() = default; |
21 | | |
22 | | } // namespace Upstream |
23 | | } // namespace Envoy |