Skip to content
GitLab
Menu
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
65f69393
Commit
65f69393
authored
Mar 04, 2020
by
Cedric CAFFY
Browse files
Changed the StorageClass operator== so that it only compare on the names of the storage classes
parent
e0b5936d
Changes
3
Hide whitespace changes
Inline
Side-by-side
common/dataStructures/StorageClass.cpp
View file @
65f69393
...
...
@@ -34,7 +34,7 @@ StorageClass::StorageClass():
// operator==
//------------------------------------------------------------------------------
bool
StorageClass
::
operator
==
(
const
StorageClass
&
rhs
)
const
{
return
diskInstance
==
rhs
.
diskInstance
&&
name
==
rhs
.
name
;
return
name
==
rhs
.
name
;
}
//------------------------------------------------------------------------------
...
...
common/dataStructures/StorageClass.hpp
View file @
65f69393
...
...
@@ -47,9 +47,9 @@ struct StorageClass {
* this one.
*
* Please note that two StorageClass objects are considered equal if and only
* if
both their diskInstance and
name member-variables match, i.e.
* if
their
name member-variables match, i.e.
*
*
diskInstance==rhs.diskInstance &&
name==rhs.name;
* name==rhs.name;
*
* All other member-variables are intentionally ignored by this equality
* operator.
...
...
common/dataStructures/StorageClassTest.cpp
View file @
65f69393
...
...
@@ -100,12 +100,6 @@ TEST_F(cta_common_dataStructures_StorageClassTest, equality_different_objects_di
ASSERT_EQ
(
m_storageClass1DiskInstance1
,
m_storageClass1DiskInstance1EffectiveCopy
);
}
TEST_F
(
cta_common_dataStructures_StorageClassTest
,
inequality_different_disk_instance
)
{
using
namespace
cta
::
common
::
dataStructures
;
ASSERT_NE
(
m_storageClass1DiskInstance1
,
m_storageClass1DiskInstance2
);
}
TEST_F
(
cta_common_dataStructures_StorageClassTest
,
inequality_different_name
)
{
using
namespace
cta
::
common
::
dataStructures
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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