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
d6f37fd4
Commit
d6f37fd4
authored
Apr 23, 2015
by
Marian Triebe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix style issues found by cppcheck
parent
0d4012f4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
34 deletions
+1
-34
libcaf_core/test/message.cpp
libcaf_core/test/message.cpp
+1
-1
libcaf_core/test/spawn.cpp
libcaf_core/test/spawn.cpp
+0
-26
libcaf_io/test/ping_pong.cpp
libcaf_io/test/ping_pong.cpp
+0
-7
No files found.
libcaf_core/test/message.cpp
View file @
d6f37fd4
...
@@ -107,7 +107,7 @@ CAF_TEST(test_extract_opts) {
...
@@ -107,7 +107,7 @@ CAF_TEST(test_extract_opts) {
f
({
"-f"
,
"hello.txt"
});
f
({
"-f"
,
"hello.txt"
});
}
}
void
test_type_token
(
)
{
CAF_TEST
(
test_type_token
)
{
auto
m1
=
make_message
(
get_atom
::
value
);
auto
m1
=
make_message
(
get_atom
::
value
);
CAF_CHECK_EQUAL
(
m1
.
type_token
(),
detail
::
make_type_token
<
get_atom
>
());
CAF_CHECK_EQUAL
(
m1
.
type_token
(),
detail
::
make_type_token
<
get_atom
>
());
}
}
...
...
libcaf_core/test/spawn.cpp
View file @
d6f37fd4
...
@@ -243,32 +243,6 @@ behavior testee1::make_behavior() {
...
@@ -243,32 +243,6 @@ behavior testee1::make_behavior() {
};
};
}
}
string
behavior_test
(
scoped_actor
&
self
,
actor
et
)
{
string
result
;
self
->
send
(
et
,
1
);
self
->
send
(
et
,
2
);
self
->
send
(
et
,
3
);
self
->
send
(
et
,
.1
f
);
self
->
send
(
et
,
"hello"
);
self
->
send
(
et
,
.2
f
);
self
->
send
(
et
,
.3
f
);
self
->
send
(
et
,
"hello again"
);
self
->
send
(
et
,
"goodbye"
);
self
->
send
(
et
,
get_atom
::
value
);
self
->
receive
(
[
&
](
const
string
&
str
)
{
result
=
str
;
},
after
(
chrono
::
minutes
(
1
))
>>
[
&
]
{
CAF_TEST_ERROR
(
"actor does not reply"
);
throw
runtime_error
(
"actor does not reply"
);
}
);
self
->
send_exit
(
et
,
exit_reason
::
user_shutdown
);
self
->
await_all_other_actors_done
();
return
result
;
}
class
echo_actor
:
public
event_based_actor
{
class
echo_actor
:
public
event_based_actor
{
public:
public:
echo_actor
();
echo_actor
();
...
...
libcaf_io/test/ping_pong.cpp
View file @
d6f37fd4
...
@@ -87,10 +87,3 @@ void pong(blocking_actor* self, actor ping_actor) {
...
@@ -87,10 +87,3 @@ void pong(blocking_actor* self, actor ping_actor) {
self
->
receive_loop
(
pong_behavior
(
self
));
self
->
receive_loop
(
pong_behavior
(
self
));
}
}
void
event_based_pong
(
event_based_actor
*
self
,
actor
ping_actor
)
{
CAF_LOGF_TRACE
(
"ping_actor = "
<<
to_string
(
ping_actor
));
CAF_REQUIRE
(
ping_actor
!=
invalid_actor
);
self
->
send
(
ping_actor
,
atom
(
"pong"
),
0
);
// kickoff
self
->
become
(
pong_behavior
(
self
));
}
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