Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-cpplib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-cpplib
Commits
8dbcd0c3
Verified
Commit
8dbcd0c3
authored
3 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
fix linting errors
parent
1acc4428
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!27
F move entity
Pipeline
#14869
passed
3 years ago
Stage: info
Stage: setup
Stage: test
Stage: deploy
Pipeline: caosdb-cppinttest
#14871
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/caosdb/file_transmission/file_reader.h
+1
-0
1 addition, 0 deletions
include/caosdb/file_transmission/file_reader.h
test/CMakeLists.txt
+1
-1
1 addition, 1 deletion
test/CMakeLists.txt
test/test_data_type.cpp
+8
-8
8 additions, 8 deletions
test/test_data_type.cpp
with
10 additions
and
9 deletions
include/caosdb/file_transmission/file_reader.h
+
1
−
0
View file @
8dbcd0c3
...
...
@@ -52,6 +52,7 @@
#include
<boost/filesystem/fstream.hpp>
// for ifstream
#include
<boost/filesystem/operations.hpp>
// for exists
#include
<boost/filesystem/path.hpp>
// for path
#include
<cstddef>
// for size_t
#include
<fstream>
// for ifstream, size_t
#include
<string>
// for string
...
...
This diff is collapsed.
Click to expand it.
test/CMakeLists.txt
+
1
−
1
View file @
8dbcd0c3
...
...
@@ -41,7 +41,7 @@ set(test_cases
# special linting for tests
set
(
_CMAKE_CXX_CLANG_TIDY_TEST_CHECKS
"
${
_CMAKE_CXX_CLANG_TIDY_CHECKS
}
,-cert-err58-cpp,-cppcoreguidelines-avoid-non-const-global-variables,-cppcoreguidelines-owning-memory,-modernize-use-trailing-return-type,-google-readability-avoid-underscore-in-googletest-name,-cppcoreguidelines-avoid-magic-numbers,-readability-magic-numbers,-cppcoreguidelines-avoid-goto,-hicpp-avoid-goto,-readability-function-cognitive-complexity,-cppcoreguidelines-non-private-member-variables-in-classes,-misc-non-private-member-variables-in-classes"
"
${
_CMAKE_CXX_CLANG_TIDY_CHECKS
}
,-cert-err58-cpp,-cppcoreguidelines-avoid-non-const-global-variables,-cppcoreguidelines-owning-memory,-modernize-use-trailing-return-type,-google-readability-avoid-underscore-in-googletest-name,-cppcoreguidelines-avoid-magic-numbers,-readability-magic-numbers,-cppcoreguidelines-avoid-goto,-hicpp-avoid-goto,-readability-function-cognitive-complexity,-cppcoreguidelines-non-private-member-variables-in-classes,-misc-non-private-member-variables-in-classes
,-clang-analyzer-cplusplus.Move
"
)
# add special cmake functions for gtest
...
...
This diff is collapsed.
Click to expand it.
test/test_data_type.cpp
+
8
−
8
View file @
8dbcd0c3
...
...
@@ -134,7 +134,7 @@ TEST(test_data_type, data_type_copy_constructor) {
const
auto
dt_string
=
data_type
.
ToString
();
// copy
const
DataType
copy_data_type
(
data_type
);
const
DataType
copy_data_type
(
data_type
);
// NOLINT (explicit copy)
EXPECT_EQ
(
copy_data_type
,
data_type
);
EXPECT_EQ
(
dt_string
,
copy_data_type
.
ToString
());
}
...
...
@@ -146,9 +146,9 @@ TEST(test_data_type, data_type_move_constructor) {
// copy for testing
const
DataType
copy_data_type
(
data_type
);
// move
const
DataType
move_data_type
(
std
::
move
(
data_type
));
EXPECT_NE
(
data_type
,
copy_data_type
);
// NOLINT
EXPECT_NE
(
data_type
.
ToString
(),
dt_string
);
// NOLINT
const
DataType
move_data_type
(
std
::
move
(
data_type
));
// NOLINT
EXPECT_NE
(
data_type
,
copy_data_type
);
// NOLINT
EXPECT_NE
(
data_type
.
ToString
(),
dt_string
);
// NOLINT
EXPECT_EQ
(
copy_data_type
,
move_data_type
);
EXPECT_EQ
(
move_data_type
.
ToString
(),
dt_string
);
...
...
@@ -159,7 +159,7 @@ TEST(test_data_type, data_type_copy_assignment) {
const
auto
dt_string
=
data_type
.
ToString
();
// copy
DataType
copy_data_type
=
data_type
;
DataType
copy_data_type
=
data_type
;
// NOLINT (explicit copy)
EXPECT_EQ
(
copy_data_type
,
data_type
);
EXPECT_EQ
(
dt_string
,
copy_data_type
.
ToString
());
}
...
...
@@ -171,9 +171,9 @@ TEST(test_data_type, data_type_move_assignment) {
// copy for testing
const
DataType
copy_data_type
(
data_type
);
// move
DataType
move_data_type
=
std
::
move
(
data_type
);
EXPECT_NE
(
data_type
,
copy_data_type
);
// NOLINT
EXPECT_NE
(
data_type
.
ToString
(),
dt_string
);
// NOLINT
DataType
move_data_type
=
std
::
move
(
data_type
);
// NOLINT
EXPECT_NE
(
data_type
,
copy_data_type
);
// NOLINT
EXPECT_NE
(
data_type
.
ToString
(),
dt_string
);
// NOLINT
EXPECT_EQ
(
copy_data_type
,
move_data_type
);
EXPECT_EQ
(
move_data_type
.
ToString
(),
dt_string
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment