Coverage Report

Created: 2023-11-12 09:30

/proc/self/cwd/test/mocks/runtime/mocks.cc
Line
Count
Source (jump to first uncovered line)
1
#include "mocks.h"
2
3
#include "gtest/gtest.h"
4
5
using testing::_;
6
using testing::Return;
7
using testing::ReturnArg;
8
using testing::ReturnRef;
9
10
namespace Envoy {
11
namespace Runtime {
12
13
868k
MockSnapshot::MockSnapshot() {
14
868k
  ON_CALL(*this, getInteger(_, _)).WillByDefault(ReturnArg<1>());
15
868k
  ON_CALL(*this, getDouble(_, _)).WillByDefault(ReturnArg<1>());
16
868k
  ON_CALL(*this, getBoolean(_, _)).WillByDefault(ReturnArg<1>());
17
868k
  ON_CALL(*this, get(_)).WillByDefault(Return(absl::nullopt));
18
868k
}
19
20
868k
MockSnapshot::~MockSnapshot() = default;
21
22
434k
MockLoader::MockLoader() {
23
434k
  ON_CALL(*this, threadsafeSnapshot()).WillByDefault(Return(threadsafe_snapshot_));
24
434k
  ON_CALL(*this, snapshot()).WillByDefault(ReturnRef(snapshot_));
25
434k
  ON_CALL(*this, getRootScope()).WillByDefault(ReturnRef(*store_.rootScope()));
26
434k
}
27
28
434k
MockLoader::~MockLoader() = default;
29
30
0
MockOverrideLayer::MockOverrideLayer() = default;
31
32
0
MockOverrideLayer::~MockOverrideLayer() = default;
33
34
} // namespace Runtime
35
} // namespace Envoy