Coverage Report

Created: 2024-09-19 09:45

/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
854k
MockSnapshot::MockSnapshot() {
14
854k
  ON_CALL(*this, getInteger(_, _)).WillByDefault(ReturnArg<1>());
15
854k
  ON_CALL(*this, getDouble(_, _)).WillByDefault(ReturnArg<1>());
16
854k
  ON_CALL(*this, getBoolean(_, _)).WillByDefault(ReturnArg<1>());
17
854k
  ON_CALL(*this, get(_)).WillByDefault(Return(absl::nullopt));
18
854k
}
19
20
853k
MockSnapshot::~MockSnapshot() = default;
21
22
427k
MockLoader::MockLoader() {
23
427k
  ON_CALL(*this, threadsafeSnapshot()).WillByDefault(Return(threadsafe_snapshot_));
24
427k
  ON_CALL(*this, snapshot()).WillByDefault(ReturnRef(snapshot_));
25
427k
  ON_CALL(*this, getRootScope()).WillByDefault(ReturnRef(*store_.rootScope()));
26
427k
}
27
28
426k
MockLoader::~MockLoader() = default;
29
30
0
MockOverrideLayer::MockOverrideLayer() = default;
31
32
0
MockOverrideLayer::~MockOverrideLayer() = default;
33
34
} // namespace Runtime
35
} // namespace Envoy