Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
9e130954
Unverified
Commit
9e130954
authored
Apr 22, 2022
by
Dominik Charousset
Committed by
GitHub
Apr 22, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1328
Remove overlooked use of deprecated APIs
parents
4d087d00
1dece448
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
libcaf_core/test/config_value_reader.cpp
libcaf_core/test/config_value_reader.cpp
+4
-3
libcaf_core/test/telemetry/collector/prometheus.cpp
libcaf_core/test/telemetry/collector/prometheus.cpp
+1
-2
libcaf_core/test/typed_spawn.cpp
libcaf_core/test/typed_spawn.cpp
+3
-3
No files found.
libcaf_core/test/config_value_reader.cpp
View file @
9e130954
...
@@ -49,14 +49,15 @@ struct fixture {
...
@@ -49,14 +49,15 @@ struct fixture {
}
}
template
<
class
T
>
template
<
class
T
>
optional
<
T
>
get
(
const
settings
&
cfg
,
std
::
string_view
key
)
{
std
::
optional
<
T
>
get
(
const
settings
&
cfg
,
std
::
string_view
key
)
{
if
(
auto
ptr
=
get_if
<
T
>
(
&
cfg
,
key
))
if
(
auto
ptr
=
get_if
<
T
>
(
&
cfg
,
key
))
return
*
ptr
;
return
*
ptr
;
return
none
;
else
return
{};
}
}
template
<
class
T
>
template
<
class
T
>
optional
<
T
>
get
(
std
::
string_view
key
)
{
std
::
optional
<
T
>
get
(
std
::
string_view
key
)
{
if
(
auto
*
xs
=
get_if
<
settings
>
(
&
x
))
if
(
auto
*
xs
=
get_if
<
settings
>
(
&
x
))
return
get
<
T
>
(
*
xs
,
key
);
return
get
<
T
>
(
*
xs
,
key
);
else
else
...
...
libcaf_core/test/telemetry/collector/prometheus.cpp
View file @
9e130954
...
@@ -12,7 +12,6 @@
...
@@ -12,7 +12,6 @@
#include "caf/telemetry/metric_type.hpp"
#include "caf/telemetry/metric_type.hpp"
using
namespace
caf
;
using
namespace
caf
;
using
namespace
caf
::
literals
;
using
namespace
caf
::
telemetry
;
using
namespace
caf
::
telemetry
;
using
namespace
std
::
literals
;
using
namespace
std
::
literals
;
...
@@ -64,7 +63,7 @@ some_request_duration_seconds_bucket{x="get",le="4"} 2 42000
...
@@ -64,7 +63,7 @@ some_request_duration_seconds_bucket{x="get",le="4"} 2 42000
some_request_duration_seconds_bucket{x="get",le="+Inf"} 3 42000
some_request_duration_seconds_bucket{x="get",le="+Inf"} 3 42000
some_request_duration_seconds_sum{x="get"} 14 42000
some_request_duration_seconds_sum{x="get"} 14 42000
some_request_duration_seconds_count{x="get"} 3 42000
some_request_duration_seconds_count{x="get"} 3 42000
)"
_
sv
);
)"
sv
);
MESSAGE
(
"multiple runs with the same timestamp generate the same output"
);
MESSAGE
(
"multiple runs with the same timestamp generate the same output"
);
auto
ts
=
make_timestamp
();
auto
ts
=
make_timestamp
();
std
::
string
res1
;
std
::
string
res1
;
...
...
libcaf_core/test/typed_spawn.cpp
View file @
9e130954
...
@@ -27,12 +27,12 @@ namespace {
...
@@ -27,12 +27,12 @@ namespace {
// check invariants of type system
// check invariants of type system
using
dummy1
=
typed_actor
<
result
<
void
>
(
int
,
int
),
result
<
double
>
(
double
)
>
;
using
dummy1
=
typed_actor
<
result
<
void
>
(
int
,
int
),
result
<
double
>
(
double
)
>
;
using
dummy2
=
dummy1
::
extend
<
re
acts_to
<
ok_atom
>
>
;
using
dummy2
=
dummy1
::
extend
<
re
sult
<
void
>
(
ok_atom
)
>
;
static_assert
(
std
::
is_convertible
<
dummy2
,
dummy1
>::
value
,
static_assert
(
std
::
is_convertible
<
dummy2
,
dummy1
>::
value
,
"handle not assignable to narrower definition"
);
"handle not assignable to narrower definition"
);
using
dummy3
=
typed_actor
<
re
acts_to
<
float
,
int
>
>
;
using
dummy3
=
typed_actor
<
re
sult
<
void
>
(
float
,
int
)
>
;
using
dummy4
=
typed_actor
<
result
<
double
>
(
int
)
>
;
using
dummy4
=
typed_actor
<
result
<
double
>
(
int
)
>
;
using
dummy5
=
dummy4
::
extend_with
<
dummy3
>
;
using
dummy5
=
dummy4
::
extend_with
<
dummy3
>
;
...
@@ -345,7 +345,7 @@ CAF_TEST(sending_typed_actors_and_down_msg) {
...
@@ -345,7 +345,7 @@ CAF_TEST(sending_typed_actors_and_down_msg) {
CAF_TEST
(
check_signature
)
{
CAF_TEST
(
check_signature
)
{
using
foo_type
=
typed_actor
<
result
<
ok_atom
>
(
put_atom
)
>
;
using
foo_type
=
typed_actor
<
result
<
ok_atom
>
(
put_atom
)
>
;
using
foo_result_type
=
result
<
ok_atom
>
;
using
foo_result_type
=
result
<
ok_atom
>
;
using
bar_type
=
typed_actor
<
re
acts_to
<
ok_atom
>
>
;
using
bar_type
=
typed_actor
<
re
sult
<
void
>
(
ok_atom
)
>
;
auto
foo_action
=
[](
foo_type
::
pointer
ptr
)
->
foo_type
::
behavior_type
{
auto
foo_action
=
[](
foo_type
::
pointer
ptr
)
->
foo_type
::
behavior_type
{
return
{
return
{
[
=
](
put_atom
)
->
foo_result_type
{
[
=
](
put_atom
)
->
foo_result_type
{
...
...
Write
Preview
Markdown
is supported
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