GCC Code Coverage Report


Directory: cvmfs/
File: cvmfs/repository_tag.h
Date: 2025-07-06 02:35:01
Exec Total Coverage
Lines: 1 6 16.7%
Branches: 2 4 50.0%

Line Branch Exec Source
1 /**
2 * This file is part of the CernVM File System.
3 */
4
5 #ifndef CVMFS_REPOSITORY_TAG_H_
6 #define CVMFS_REPOSITORY_TAG_H_
7
8 #include <string>
9
10 class RepositoryTag {
11 public:
12
2/4
✓ Branch 2 taken 705 times.
✗ Branch 3 not taken.
✓ Branch 7 taken 705 times.
✗ Branch 8 not taken.
705 RepositoryTag() : name_(""), description_("") { }
13 RepositoryTag(const std::string &name, const std::string &description);
14
15 void SetName(const std::string &name) { name_ = name; }
16 void SetDescription(const std::string &description) {
17 description_ = description;
18 }
19
20 bool HasGenericName();
21 void SetGenericName();
22
23 std::string name() const { return name_; }
24 std::string description() const { return description_; }
25
26 private:
27 std::string name_;
28 std::string description_;
29 };
30
31 #endif // CVMFS_REPOSITORY_TAG_H_
32