Coverage Report

Created: 2025-08-24 06:21

/src/logging-log4cxx/src/main/cpp/defaultrepositoryselector.cpp
Line
Count
Source
1
/*
2
 * Licensed to the Apache Software Foundation (ASF) under one or more
3
 * contributor license agreements.  See the NOTICE file distributed with
4
 * this work for additional information regarding copyright ownership.
5
 * The ASF licenses this file to You under the Apache License, Version 2.0
6
 * (the "License"); you may not use this file except in compliance with
7
 * the License.  You may obtain a copy of the License at
8
 *
9
 *      http://www.apache.org/licenses/LICENSE-2.0
10
 *
11
 * Unless required by applicable law or agreed to in writing, software
12
 * distributed under the License is distributed on an "AS IS" BASIS,
13
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
 * See the License for the specific language governing permissions and
15
 * limitations under the License.
16
 */
17
18
#include <log4cxx/spi/defaultrepositoryselector.h>
19
20
using namespace LOG4CXX_NS;
21
using namespace LOG4CXX_NS::spi;
22
using namespace LOG4CXX_NS::helpers;
23
24
struct DefaultRepositorySelector::DefaultRepositorySelectorPrivate
25
{
26
  LoggerRepositoryPtr repository;
27
};
28
29
DefaultRepositorySelector::DefaultRepositorySelector(const LoggerRepositoryPtr repository1)
30
6
  : m_priv(std::make_unique<DefaultRepositorySelectorPrivate>())
31
6
{
32
6
  m_priv->repository = repository1;
33
6
}
Unexecuted instantiation: log4cxx::spi::DefaultRepositorySelector::DefaultRepositorySelector(std::__1::shared_ptr<log4cxx::spi::LoggerRepository>)
log4cxx::spi::DefaultRepositorySelector::DefaultRepositorySelector(std::__1::shared_ptr<log4cxx::spi::LoggerRepository>)
Line
Count
Source
30
6
  : m_priv(std::make_unique<DefaultRepositorySelectorPrivate>())
31
6
{
32
6
  m_priv->repository = repository1;
33
6
}
34
35
6
DefaultRepositorySelector::~DefaultRepositorySelector() {}
36
37
LoggerRepositoryPtr DefaultRepositorySelector::getLoggerRepository()
38
7.87k
{
39
7.87k
  return m_priv->repository;
40
7.87k
}