GCC Code Coverage Report


Directory: ./
File: Utils/Hash/HashCommon.cpp
Date: 2026-09-03 21:13:48
Exec Total Coverage
Lines: 6 6 100.0%
Functions: 3 3 100.0%
Branches: 0 0 -%

Line Branch Exec Source
1 #include <Utils/Hash/Hash.hpp>
2
3 namespace Utils {
4
5 59 const char* Hash ::getFileExtensionString() {
6 59 return HASH_EXTENSION_STRING;
7 }
8
9 22 Fw::FormatStatus Hash ::addFileExtension(const Fw::ConstStringBase& baseName, Fw::StringBase& extendedName) {
10 22 return extendedName.format("%s%s", baseName.toChar(), HASH_EXTENSION_STRING);
11 }
12
13 8 FwSizeType Hash ::getFileExtensionLength() {
14 // Size of returns the size including the '\0' character.
15 // We want to return just the size of the string.
16 8 return sizeof(HASH_EXTENSION_STRING) - 1;
17 }
18
19 } // namespace Utils
20