Coverage Report

Created: 2024-09-19 09:45

/proc/self/cwd/test/mocks/common.cc
Line
Count
Source (jump to first uncovered line)
1
#include "test/mocks/common.h"
2
3
using testing::_;
4
using testing::ByMove;
5
using testing::Return;
6
7
namespace Envoy {
8
namespace ConnectionPool {
9
0
MockCancellable::MockCancellable() = default;
10
0
MockCancellable::~MockCancellable() = default;
11
} // namespace ConnectionPool
12
13
namespace Random {
14
15
201k
MockRandomGenerator::MockRandomGenerator() { ON_CALL(*this, uuid()).WillByDefault(Return(uuid_)); }
16
17
0
MockRandomGenerator::MockRandomGenerator(uint64_t value) : value_(value) {
18
0
  ON_CALL(*this, random()).WillByDefault(Return(value_));
19
0
  ON_CALL(*this, uuid()).WillByDefault(Return(uuid_));
20
0
}
21
22
201k
MockRandomGenerator::~MockRandomGenerator() = default;
23
24
} // namespace Random
25
26
0
ReadyWatcher::ReadyWatcher() = default;
27
0
ReadyWatcher::~ReadyWatcher() = default;
28
29
43.9k
MockTimeSystem::MockTimeSystem() = default;
30
43.9k
MockTimeSystem::~MockTimeSystem() = default;
31
32
0
MockKeyValueStoreFactory::MockKeyValueStoreFactory() {
33
0
  ON_CALL(*this, createStore(_, _, _, _))
34
0
      .WillByDefault(Return(ByMove(std::make_unique<MockKeyValueStore>())));
35
0
}
36
37
} // namespace Envoy