Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-cppinttest
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-cppinttest
Commits
6c217189
Verified
Commit
6c217189
authored
3 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
WIP: tests for f-int64
parent
578dd606
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!14
Tests for f-int64
Pipeline
#12858
failed
3 years ago
Stage: info
Stage: setup
Stage: build
Stage: test
This commit is part of merge request
!14
. Comments created here will be created in the context of that merge request.
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
conanfile.txt
+1
-1
1 addition, 1 deletion
conanfile.txt
test/test_transaction.cpp
+11
-3
11 additions, 3 deletions
test/test_transaction.cpp
with
12 additions
and
4 deletions
conanfile.txt
+
1
−
1
Edit
View file @
6c217189
[requires]
caosdb/0.0.1
3
caosdb/0.0.1
5
gtest/1.11.0
[generators]
...
...
This diff is collapsed.
Click to expand it.
test/test_transaction.cpp
+
11
−
3
Edit
View file @
6c217189
...
...
@@ -32,7 +32,7 @@
#include
<boost/filesystem/path.hpp>
// for path
#include
<boost/filesystem/path_traits.hpp>
// for filesystem
#include
<cstddef>
// for size_t
#include
<cstdint>
// for int32_t
#include
<cstdint>
// for
int64_t,
int32_t
#include
<gtest/gtest-message.h>
// for Message
#include
<gtest/gtest-test-part.h>
// for TestPartResult
#include
<gtest/gtest_pred_impl.h>
// for AssertionResult
...
...
@@ -133,10 +133,16 @@ auto test_transaction::getValueAs<double>(const Value &value) -> double {
}
template
<
>
auto
test_transaction
::
getValueAs
<
int
32
_t
>
(
const
Value
&
value
)
->
int
32
_t
{
auto
test_transaction
::
getValueAs
<
int
64
_t
>
(
const
Value
&
value
)
->
int
64
_t
{
return
value
.
AsInteger
();
}
template
<
>
auto
test_transaction
::
getValueAs
<
int32_t
>
(
const
Value
&
value
)
->
int32_t
{
return
static_cast
<
int32_t
>
(
value
.
AsInteger
());
}
template
<
>
auto
test_transaction
::
getValueAs
<
bool
>
(
const
Value
&
value
)
->
bool
{
return
value
.
AsBool
();
...
...
@@ -756,6 +762,8 @@ TEST_F(test_transaction, test_numeric_values) {
test_numeric_values_impl
<
int32_t
>
(
AtomicDataType
::
INTEGER
);
test_transaction
::
DeleteEntities
();
test_numeric_values_impl
<
bool
>
(
AtomicDataType
::
BOOLEAN
);
test_transaction
::
DeleteEntities
();
test_numeric_values_impl
<
int64_t
>
(
AtomicDataType
::
INTEGER
);
}
// /*
...
...
@@ -1070,7 +1078,7 @@ TEST_F(test_transaction, test_full_workflow) {
experiment_rec
.
AppendProperty
(
volt_for_rt
);
notes_for_rt2
.
SetValue
(
"This is important!"
);
experiment_rec
.
AppendProperty
(
notes_for_rt2
);
part_for_rt3
.
SetValue
(
static_cast
<
int32_t
>
(
6
)
);
part_for_rt3
.
SetValue
(
6
);
experiment_rec
.
AppendProperty
(
part_for_rt3
);
succ_for_rt
.
SetValue
(
true
);
experiment_rec
.
AppendProperty
(
succ_for_rt
);
...
...
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