Coverage Report

Created: 2024-05-20 06:23

/src/exiv2/src/metadatum.cpp
Line
Count
Source (jump to first uncovered line)
1
// SPDX-License-Identifier: GPL-2.0-or-later
2
3
#include "metadatum.hpp"
4
5
namespace Exiv2 {
6
0
Key::UniquePtr Key::clone() const {
7
0
  return UniquePtr(clone_());
8
0
}
9
10
384k
std::string Metadatum::print(const ExifData* pMetadata) const {
11
384k
  std::ostringstream os;
12
384k
  write(os, pMetadata);
13
384k
  return os.str();
14
384k
}
15
16
6.32k
uint32_t Metadatum::toUint32(size_t n) const {
17
6.32k
  return static_cast<uint32_t>(toInt64(n));
18
6.32k
}
19
20
0
bool cmpMetadataByTag(const Metadatum& lhs, const Metadatum& rhs) {
21
0
  return lhs.tag() < rhs.tag();
22
0
}
23
24
0
bool cmpMetadataByKey(const Metadatum& lhs, const Metadatum& rhs) {
25
0
  return lhs.key() < rhs.key();
26
0
}
27
28
}  // namespace Exiv2