Coverage Report

Created: 2024-09-19 09:45

/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
36.7k
    : host_{std::make_shared<testing::NiceMock<Upstream::MockHostDescription>>()} {
13
36.7k
  ON_CALL(*this, host()).WillByDefault(Return(host_));
14
36.7k
  ON_CALL(*this, addIdleCallback(_)).WillByDefault(SaveArg<0>(&idle_cb_));
15
36.7k
}
16
36.7k
MockInstance::~MockInstance() = default;
17
18
} // namespace ConnectionPool
19
} // namespace Http
20
} // namespace Envoy