• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

OpenLightingProject / ola / 23384901691

21 Mar 2026 05:30PM UTC coverage: 45.055% (-0.7%) from 45.72%
23384901691

Pull #1855

github

web-flow
Merge 41df99d06 into 704337b09
Pull Request #1855: Update Debian Package Services and Config Directory

8554 of 19814 branches covered (43.17%)

0 of 6 new or added lines in 4 files covered. (0.0%)

324 existing lines in 56 files now uncovered.

22100 of 49051 relevant lines covered (45.06%)

48.24 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/common/base/Version.cpp
1
/*
2
 * This library is free software; you can redistribute it and/or
3
 * modify it under the terms of the GNU Lesser General Public
4
 * License as published by the Free Software Foundation; either
5
 * version 2.1 of the License, or (at your option) any later version.
6
 *
7
 * This library is distributed in the hope that it will be useful,
8
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10
 * Lesser General Public License for more details.
11
 *
12
 * You should have received a copy of the GNU Lesser General Public
13
 * License along with this library; if not, write to the Free Software
14
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15
 *
16
 * Version.cpp
17
 * Provides version information for all of OLA.
18
 * Copyright (C) 2014 Peter Newman
19
 */
20

21
#include "ola/base/Version.h"
22

23
#include <sstream>
24
#include <string>
25

26
namespace ola {
27
namespace base {
28

29
using std::string;
30

31
unsigned int Version::GetMajor() {
×
32
  return OLA_VERSION_MAJOR;
×
33
}
34

35
unsigned int Version::GetMinor() {
×
36
  return OLA_VERSION_MINOR;
×
37
}
38

39
unsigned int Version::GetRevision() {
×
40
  return OLA_VERSION_REVISION;
×
41
}
42

NEW
43
string Version::GetBuildName() {
×
NEW
44
  return OLA_BUILD_NAME;
×
45
}
46

47
string Version::GetVersion() {
×
48
  std::ostringstream str;
×
49
  str << GetMajor() << "." << GetMinor() << "." << GetRevision();
×
50
  return str.str();
×
51
}
×
52

53
bool Version::IsAtLeast(unsigned int major,
×
54
                        unsigned int minor,
55
                        unsigned int revision) {
56
  return (
×
57
      GetMajor() >= major &&
×
58
      GetMinor() >= minor &&
×
59
      GetRevision() >= revision);
×
60
}
61
}  // namespace base
62
}  // namespace ola
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc