Coverage Report

Created: 2024-09-19 09:45

/proc/self/cwd/test/mocks/server/admin.cc
Line
Count
Source
1
#include "admin.h"
2
3
#include "gmock/gmock.h"
4
#include "gtest/gtest.h"
5
6
using testing::_;
7
using testing::Return;
8
using testing::ReturnRef;
9
10
namespace Envoy {
11
namespace Server {
12
13
16.0k
MockAdmin::MockAdmin() {
14
16.0k
  ON_CALL(*this, getConfigTracker()).WillByDefault(ReturnRef(config_tracker_));
15
16.0k
  ON_CALL(*this, concurrency()).WillByDefault(Return(1));
16
16.0k
  ON_CALL(*this, socket()).WillByDefault(ReturnRef(socket_));
17
16.0k
  ON_CALL(*this, addHandler(_, _, _, _, _, _)).WillByDefault(Return(true));
18
16.0k
  ON_CALL(*this, removeHandler(_)).WillByDefault(Return(true));
19
16.0k
}
20
21
16.0k
MockAdmin::~MockAdmin() = default;
22
23
} // namespace Server
24
} // namespace Envoy