GCC Code Coverage Report


Directory: cvmfs/
File: cvmfs/repository_tag.h
Date: 2024-04-21 02:33:16
Exec Total Coverage
Lines: 1 7 14.3%
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 24 times.
✗ Branch 3 not taken.
✓ Branch 7 taken 24 times.
✗ Branch 8 not taken.
24 RepositoryTag() : name_(""), description_("") {}
13 RepositoryTag(const std::string& name,
14 const std::string& description);
15
16 void SetName(const std::string& name) {
17 name_ = name;
18 }
19 void SetDescription(const std::string& description) {
20 description_ = description;
21 }
22
23 bool HasGenericName();
24 void SetGenericName();
25
26 std::string name() const { return name_; }
27 std::string description() const { return description_; }
28
29 private:
30 std::string name_;
31 std::string description_;
32 };
33
34 #endif // CVMFS_REPOSITORY_TAG_H_
35