Coverage Report

Created: 2023-11-12 09:30

/proc/self/cwd/test/mocks/http/conn_pool.cc
Line
Count
Source
1
#include "test/mocks/http/conn_pool.h"
2
3
using testing::_;
4
using testing::Return;
5
using testing::SaveArg;
6
7
namespace Envoy {
8
namespace Http {
9
namespace ConnectionPool {
10
11
MockInstance::MockInstance()
12
39.6k
    : host_{std::make_shared<testing::NiceMock<Upstream::MockHostDescription>>()} {
13
39.6k
  ON_CALL(*this, host()).WillByDefault(Return(host_));
14
39.6k
  ON_CALL(*this, addIdleCallback(_)).WillByDefault(SaveArg<0>(&idle_cb_));
15
39.6k
}
16
39.6k
MockInstance::~MockInstance() = default;
17
18
} // namespace ConnectionPool
19
} // namespace Http
20
} // namespace Envoy