Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
a85f92c4
Commit
a85f92c4
authored
May 22, 2019
by
Steven Murray
Browse files
Added isDisabled member-variable to cta::common::dataStructures::LogicalLibrary
parent
efbf0cca
Changes
4
Hide whitespace changes
Inline
Side-by-side
common/CMakeLists.txt
View file @
a85f92c4
...
...
@@ -167,6 +167,7 @@ set (COMMON_UNIT_TESTS_LIB_SRC_FILES
ConfigurationFileTests.cpp
SourcedParameterTests.cpp
dataStructures/ArchiveFileTest.cpp
dataStructures/LogicalLibraryTest.cpp
dataStructures/StorageClassTest.cpp
processCap/SmartCapTest.cpp
log/FileLoggerTest.cpp
...
...
common/dataStructures/LogicalLibrary.cpp
View file @
a85f92c4
...
...
@@ -27,7 +27,8 @@ namespace dataStructures {
//------------------------------------------------------------------------------
// constructor
//------------------------------------------------------------------------------
LogicalLibrary
::
LogicalLibrary
()
{}
LogicalLibrary
::
LogicalLibrary
()
:
isDisabled
(
false
)
{
}
//------------------------------------------------------------------------------
// operator==
...
...
common/dataStructures/LogicalLibrary.hpp
View file @
a85f92c4
...
...
@@ -35,6 +35,11 @@ namespace dataStructures {
*/
struct
LogicalLibrary
{
/**
* Constructor.
*
* Initialises isDisabled to false.
*/
LogicalLibrary
();
bool
operator
==
(
const
LogicalLibrary
&
rhs
)
const
;
...
...
@@ -42,6 +47,7 @@ struct LogicalLibrary {
bool
operator
!=
(
const
LogicalLibrary
&
rhs
)
const
;
std
::
string
name
;
bool
isDisabled
;
EntryLog
creationLog
;
EntryLog
lastModificationLog
;
std
::
string
comment
;
...
...
common/dataStructures/LogicalLibraryTest.cpp
0 → 100644
View file @
a85f92c4
/*
* The CERN Tape Archive (CTA) project
* Copyright (C) 2015 CERN
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include
"common/dataStructures/LogicalLibrary.hpp"
#include
<gtest/gtest.h>
#include
<algorithm>
namespace
unitTests
{
class
cta_common_dataStructures_LogicalLibraryTest
:
public
::
testing
::
Test
{
protected:
virtual
void
SetUp
()
{
}
virtual
void
TearDown
()
{
}
};
TEST_F
(
cta_common_dataStructures_LogicalLibraryTest
,
constructor
)
{
using
namespace
cta
::
common
::
dataStructures
;
LogicalLibrary
logicalLibrary
;
ASSERT_FALSE
(
logicalLibrary
.
isDisabled
);
}
}
// namespace unitTests
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment