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
Compare revisions
dev to f-rel-path
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
caosdb/src/caosdb-cpplib
Select target project
No results found
f-rel-path
Select Git revision
Swap
Target
caosdb/src/caosdb-cpplib
Select target project
caosdb/src/caosdb-cpplib
1 result
dev
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (1)
TST: test relative path
· 0713a1c2
Henrik tom Wörden
authored
3 years ago
0713a1c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/test_entity.cpp
+4
-0
4 additions, 0 deletions
test/test_entity.cpp
with
4 additions
and
0 deletions
test/test_entity.cpp
View file @
0713a1c2
...
...
@@ -30,6 +30,7 @@
#include
"caosdb/status_code.h"
// for StatusCode, FILE_DO...
#include
"caosdb/transaction.h"
// for Transaction
#include
"caosdb/value.h"
// for Value
#include
<boost/filesystem/path.hpp>
// for path
#include
<exception>
#include
<google/protobuf/arena.h>
// for Arena
#include
<gtest/gtest-message.h>
// for Message
...
...
@@ -459,6 +460,9 @@ TEST(test_entity, test_add_file) {
Entity
entity
;
entity
.
SetRole
(
Role
::
FILE
);
EXPECT_EQ
(
entity
.
SetLocalPath
(
TEST_DATA_DIR
+
"/test.json"
),
StatusCode
::
SUCCESS
);
EXPECT_EQ
(
entity
.
SetLocalPath
(
boost
::
filesystem
::
relative
(
TEST_DATA_DIR
+
"/test.json"
)),
StatusCode
::
SUCCESS
);
}
}
// namespace caosdb::entity
This diff is collapsed.
Click to expand it.