Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
Analysis Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
blob
sPHENIX
Alignment
CI
cmake
Core
docs
Examples
Fatras
Plugins
Tests
Benchmarks
CommonHelpers
DownstreamProject
DownstreamProjectNodeps
IntegrationTests
UnitTests
Alignment
Benchmarks
Core
Clusterization
Definitions
Detector
Digitization
EventData
Geometry
MagneticField
Material
Navigation
Propagator
Seeding
SpacePointFormation
Surfaces
TrackFinding
TrackFitting
Utilities
Vertexing
Visualization
VersionTests.cpp
Examples
Fatras
Plugins
acts-fatras
analysis
analysis_tpc_prototype
coresoftware
Doxygen_Assist
g4exampledetector
GenFit
JETSCAPE
KFParticle
macros
online_distribution
OnlMon
prototype
pythia6
rcdaq
RDBC
tutorials
doxygen_mainpage.h
File Members
Examples
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
VersionTests.cpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file VersionTests.cpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2020 CERN for the benefit of the Acts project
4
//
5
// This Source Code Form is subject to the terms of the Mozilla Public
6
// License, v. 2.0. If a copy of the MPL was not distributed with this
7
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
9
// the purpose of these tests is to ensure that the version header is valid and
10
// the exported parameters are accessible. otherwise, there would is no code
11
// that actually includes the version header.
12
13
#include <boost/test/unit_test.hpp>
14
15
#include "Acts/ActsVersion.hpp"
16
17
#include <string_view>
18
19
BOOST_AUTO_TEST_CASE
(Version) {
20
// the only way to get a zero version would be zero for all components
21
BOOST_CHECK_LT(0
u
, Acts::Version);
22
// these tests are not really useful as the version components can be any
23
// value. they are there so we touch all variables and ensure that they are
24
// accessible.
25
BOOST_CHECK_LE(0
u
, Acts::VersionMajor);
26
BOOST_CHECK_LE(0
u
, Acts::VersionMinor);
27
BOOST_CHECK_LE(0
u
, Acts::VersionPatch);
28
}
29
30
BOOST_AUTO_TEST_CASE
(CommitHash) {
31
BOOST_CHECK(not std::string_view(Acts::CommitHash).empty());
32
BOOST_CHECK(not std::string_view(Acts::CommitHashShort).empty());
33
}
acts
blob
sPHENIX
Tests
UnitTests
Core
VersionTests.cpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:45
using
1.8.2 with
sPHENIX GitHub integration