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
03008eb2
Commit
03008eb2
authored
Apr 20, 2018
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add run_exhaustively convenience function
parent
86216d83
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
libcaf_core/test/continuous_streaming.cpp
libcaf_core/test/continuous_streaming.cpp
+2
-2
libcaf_test/caf/test/dsl.hpp
libcaf_test/caf/test/dsl.hpp
+5
-0
No files found.
libcaf_core/test/continuous_streaming.cpp
View file @
03008eb2
...
...
@@ -159,7 +159,7 @@ CAF_TEST(depth_3_pipeline_with_fork) {
sched
.
run
();
CAF_CHECK_EQUAL
(
st
.
stage
->
out
().
num_paths
(),
2u
);
CAF_CHECK_EQUAL
(
st
.
stage
->
inbound_paths
().
size
(),
1u
);
sched
.
run_dispatch_loop
(
streaming_cycle
);
run_exhaustively
(
);
CAF_CHECK_EQUAL
(
st
.
stage
->
out
().
num_paths
(),
2u
);
CAF_CHECK_EQUAL
(
st
.
stage
->
inbound_paths
().
size
(),
0u
);
CAF_CHECK_EQUAL
(
deref
<
sum_up_actor
>
(
snk1
).
state
.
x
,
1275
);
...
...
@@ -183,7 +183,7 @@ CAF_TEST(depth_3_pipeline_with_join) {
sched
.
run
();
CAF_CHECK_EQUAL
(
st
.
stage
->
out
().
num_paths
(),
1u
);
CAF_CHECK_EQUAL
(
st
.
stage
->
inbound_paths
().
size
(),
2u
);
sched
.
run_dispatch_loop
(
streaming_cycle
);
run_exhaustively
(
);
CAF_CHECK_EQUAL
(
st
.
stage
->
out
().
num_paths
(),
1u
);
CAF_CHECK_EQUAL
(
st
.
stage
->
inbound_paths
().
size
(),
0u
);
CAF_CHECK_EQUAL
(
deref
<
sum_up_actor
>
(
snk
).
state
.
x
,
2550
);
...
...
libcaf_test/caf/test/dsl.hpp
View file @
03008eb2
...
...
@@ -573,6 +573,11 @@ struct test_coordinator_fixture {
sched
.
run
();
}
/// Dispatches messages and timeouts until no activity remains.
void
run_exhaustively
()
{
sched
.
run_dispatch_loop
(
streaming_cycle
);
}
template
<
class
T
=
int
>
caf
::
expected
<
T
>
fetch_result
()
{
caf
::
expected
<
T
>
result
=
caf
::
error
{};
...
...
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