Coverage Report

Created: 2026-07-16 06:33

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/pldm_shims/phosphor-logging/lg2.hpp
Line
Count
Source
1
// Copyright 2026 Google LLC
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
//      http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
//
15
////////////////////////////////////////////////////////////////////////////////
16
17
#pragma once
18
19
#define PHOSPHOR_LOG2_USING
20
21
namespace lg2
22
{
23
// Mock logging functions
24
template<typename... Args>
25
30
inline void error(const char*, Args&&...) {}
void lg2::error<char const (&) [3], int&>(char const*, char const (&) [3], int&)
Line
Count
Source
25
30
inline void error(const char*, Args&&...) {}
Unexecuted instantiation: void lg2::error<char const (&) [5], unsigned short&, char const (&) [7], unsigned long&, char const (&) [3], int&>(char const*, char const (&) [5], unsigned short&, char const (&) [7], unsigned long&, char const (&) [3], int&)
Unexecuted instantiation: void lg2::error<char const (&) [7], unsigned int&, char const (&) [18], std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, char const (&) [5], unsigned long&>(char const*, char const (&) [7], unsigned int&, char const (&) [18], std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, char const (&) [5], unsigned long&)
Unexecuted instantiation: void lg2::error<char const (&) [9], unsigned long&, char const (&) [24], unsigned long&>(char const*, char const (&) [9], unsigned long&, char const (&) [24], unsigned long&)
Unexecuted instantiation: void lg2::error<char const (&) [13], unsigned long const&>(char const*, char const (&) [13], unsigned long const&)
Unexecuted instantiation: void lg2::error<char const (&) [9], unsigned char&>(char const*, char const (&) [9], unsigned char&)
Unexecuted instantiation: void lg2::error<char const (&) [13], unsigned short&>(char const*, char const (&) [13], unsigned short&)
Unexecuted instantiation: void lg2::error<char const (&) [20], unsigned int&, char const (&) [24], unsigned int&>(char const*, char const (&) [20], unsigned int&, char const (&) [24], unsigned int&)
26
27
template<typename... Args>
28
inline void info(const char*, Args&&...) {}
29
30
template<typename... Args>
31
inline void warning(const char*, Args&&...) {}
32
33
template<typename... Args>
34
inline void debug(const char*, Args&&...) {}
35
}
36
37
// Bring them into the global namespace or let the using namespace handle it
38
using namespace lg2;