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
46233116
Commit
46233116
authored
Apr 09, 2013
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed displayed unit test names: {test__=>test_}
parent
85ecb9b3
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
17 additions
and
17 deletions
+17
-17
unit_testing/test_atom.cpp
unit_testing/test_atom.cpp
+1
-1
unit_testing/test_fixed_vector.cpp
unit_testing/test_fixed_vector.cpp
+1
-1
unit_testing/test_intrusive_containers.cpp
unit_testing/test_intrusive_containers.cpp
+1
-1
unit_testing/test_intrusive_ptr.cpp
unit_testing/test_intrusive_ptr.cpp
+1
-1
unit_testing/test_local_group.cpp
unit_testing/test_local_group.cpp
+1
-1
unit_testing/test_match.cpp
unit_testing/test_match.cpp
+1
-1
unit_testing/test_metaprogramming.cpp
unit_testing/test_metaprogramming.cpp
+1
-1
unit_testing/test_primitive_variant.cpp
unit_testing/test_primitive_variant.cpp
+1
-1
unit_testing/test_remote_actor.cpp
unit_testing/test_remote_actor.cpp
+2
-2
unit_testing/test_ripemd_160.cpp
unit_testing/test_ripemd_160.cpp
+1
-1
unit_testing/test_serialization.cpp
unit_testing/test_serialization.cpp
+1
-1
unit_testing/test_spawn.cpp
unit_testing/test_spawn.cpp
+1
-1
unit_testing/test_sync_send.cpp
unit_testing/test_sync_send.cpp
+1
-1
unit_testing/test_tuple.cpp
unit_testing/test_tuple.cpp
+1
-1
unit_testing/test_uniform_type.cpp
unit_testing/test_uniform_type.cpp
+1
-1
unit_testing/test_yield_interface.cpp
unit_testing/test_yield_interface.cpp
+1
-1
No files found.
unit_testing/test_atom.cpp
View file @
46233116
...
...
@@ -29,7 +29,7 @@ void foo() {
int
main
()
{
bool
matched_pattern
[
3
]
=
{
false
,
false
,
false
};
CPPA_TEST
(
test_
_
atom
);
CPPA_TEST
(
test_atom
);
// check if there are leading bits that distinguish "zzz" and "000 "
CPPA_CHECK_NOT_EQUAL
(
atom
(
"zzz"
),
atom
(
"000 "
));
// check if there are leading bits that distinguish "abc" and " abc"
...
...
unit_testing/test_fixed_vector.cpp
View file @
46233116
...
...
@@ -12,7 +12,7 @@ using std::equal;
using
cppa
::
util
::
fixed_vector
;
int
main
()
{
CPPA_TEST
(
test_
_
fixed_vector
);
CPPA_TEST
(
test_fixed_vector
);
int
arr1
[]
{
1
,
2
,
3
,
4
};
fixed_vector
<
int
,
4
>
vec1
{
1
,
2
,
3
,
4
};
fixed_vector
<
int
,
5
>
vec2
{
4
,
3
,
2
,
1
};
...
...
unit_testing/test_intrusive_containers.cpp
View file @
46233116
...
...
@@ -60,7 +60,7 @@ inline bool operator==(int lhs, const iint& rhs) {
typedef
cppa
::
intrusive
::
single_reader_queue
<
iint
>
iint_queue
;
int
main
()
{
CPPA_TEST
(
test_
_
intrusive_containers
);
CPPA_TEST
(
test_intrusive_containers
);
cppa
::
intrusive
::
single_reader_queue
<
iint
>
q
;
q
.
enqueue
(
new
iint
(
1
));
...
...
unit_testing/test_intrusive_ptr.cpp
View file @
46233116
...
...
@@ -45,7 +45,7 @@ int main() {
// this test dosn't test thread-safety of intrusive_ptr
// however, it is thread safe since it uses atomic operations only
CPPA_TEST
(
test_
_
intrusive_ptr
);
CPPA_TEST
(
test_intrusive_ptr
);
{
auto
p
=
make_counted
<
class0
>
();
CPPA_CHECK_EQUAL
(
class0_instances
,
1
);
...
...
unit_testing/test_local_group.cpp
View file @
46233116
...
...
@@ -37,7 +37,7 @@ void testee(int current_value, int final_result) {
}
int
main
()
{
CPPA_TEST
(
test_
_
local_group
);
CPPA_TEST
(
test_local_group
);
auto
foo_group
=
group
::
get
(
"local"
,
"foo"
);
actor_ptr
master
=
spawn_in_group
(
foo_group
,
testee
,
0
,
10
);
for
(
int
i
=
0
;
i
<
5
;
++
i
)
{
...
...
unit_testing/test_match.cpp
View file @
46233116
...
...
@@ -23,7 +23,7 @@ bool is_even(int i) { return i % 2 == 0; }
*/
int
main
()
{
CPPA_TEST
(
test_
_
match
);
CPPA_TEST
(
test_match
);
using
namespace
std
::
placeholders
;
using
namespace
cppa
::
placeholders
;
...
...
unit_testing/test_metaprogramming.cpp
View file @
46233116
...
...
@@ -23,7 +23,7 @@ using namespace cppa::util;
int
main
()
{
CPPA_TEST
(
test_
_
metaprogramming
);
CPPA_TEST
(
test_metaprogramming
);
CPPA_PRINT
(
"test type_list"
);
...
...
unit_testing/test_primitive_variant.cpp
View file @
46233116
...
...
@@ -27,7 +27,7 @@ inline std::ostream& operator<<(std::ostream& o, const primitive_variant& pv) {
using
namespace
cppa
;
int
main
()
{
CPPA_TEST
(
test_
_
primitive_variant
);
CPPA_TEST
(
test_primitive_variant
);
std
::
uint32_t
forty_two
=
42
;
primitive_variant
v1
(
forty_two
);
...
...
unit_testing/test_remote_actor.cpp
View file @
46233116
...
...
@@ -138,7 +138,7 @@ void spawn5_client() {
}
int
client_part
(
const
vector
<
string_pair
>&
args
)
{
CPPA_TEST
(
test_
_
remote_actor_client_part
);
CPPA_TEST
(
test_remote_actor_client_part
);
auto
i
=
find_if
(
args
.
begin
(),
args
.
end
(),
[](
const
string_pair
&
p
)
{
return
p
.
first
==
"port"
;
});
if
(
i
==
args
.
end
())
{
...
...
@@ -254,7 +254,7 @@ int main(int argc, char** argv) {
return
client_part
(
args
);
}
}
CPPA_TEST
(
test_
_
remote_actor
);
CPPA_TEST
(
test_remote_actor
);
//auto ping_actor = spawn(ping, 10);
uint16_t
port
=
4242
;
bool
success
=
false
;
...
...
unit_testing/test_ripemd_160.cpp
View file @
46233116
...
...
@@ -27,7 +27,7 @@ std::string str_hash(const std::string& what) {
// verify ripemd implementation with example hash results from
// http://homes.esat.kuleuven.be/~bosselae/ripemd160.html
int
main
()
{
CPPA_TEST
(
test_
_
ripemd_160
);
CPPA_TEST
(
test_ripemd_160
);
CPPA_CHECK_EQUAL
(
"9c1185a5c5e9fc54612808977ee8f548b2258d31"
,
str_hash
(
""
));
...
...
unit_testing/test_serialization.cpp
View file @
46233116
...
...
@@ -144,7 +144,7 @@ struct raw_struct_type_info : util::abstract_uniform_type_info<raw_struct> {
};
int
main
()
{
CPPA_TEST
(
test_
_
serialization
);
CPPA_TEST
(
test_serialization
);
announce
(
typeid
(
raw_struct
),
new
raw_struct_type_info
);
...
...
unit_testing/test_spawn.cpp
View file @
46233116
...
...
@@ -283,7 +283,7 @@ struct simple_mirror : sb_actor<simple_mirror> {
};
int
main
()
{
CPPA_TEST
(
test_
_
spawn
);
CPPA_TEST
(
test_spawn
);
CPPA_PRINT
(
"test send()"
);
send
(
self
,
1
,
2
,
3
,
true
);
...
...
unit_testing/test_sync_send.cpp
View file @
46233116
...
...
@@ -166,7 +166,7 @@ struct server : event_based_actor {
int
main
()
{
CPPA_TEST
(
test_
_
sync_send
);
CPPA_TEST
(
test_sync_send
);
self
->
on_sync_failure
([]
{
CPPA_ERROR
(
"received: "
<<
to_string
(
self
->
last_dequeued
()));
});
...
...
unit_testing/test_tuple.cpp
View file @
46233116
...
...
@@ -130,7 +130,7 @@ struct dummy_receiver : event_based_actor {
};
int
main
()
{
CPPA_TEST
(
test_
_
tuple
);
CPPA_TEST
(
test_tuple
);
announce
<
expensive_copy_struct
>
(
&
expensive_copy_struct
::
value
);
...
...
unit_testing/test_uniform_type.cpp
View file @
46233116
...
...
@@ -45,7 +45,7 @@ inline bool operator==(const foo& lhs, const foo& rhs) {
using
namespace
cppa
;
int
main
()
{
CPPA_TEST
(
test_
_
uniform_type
);
CPPA_TEST
(
test_uniform_type
);
bool
announce1
=
announce
<
foo
>
(
&
foo
::
value
);
bool
announce2
=
announce
<
foo
>
(
&
foo
::
value
);
bool
announce3
=
announce
<
foo
>
(
&
foo
::
value
);
...
...
unit_testing/test_yield_interface.cpp
View file @
46233116
...
...
@@ -36,7 +36,7 @@ struct pseudo_worker {
void
coroutine
(
void
*
worker
)
{
(
*
reinterpret_cast
<
pseudo_worker
*>
(
worker
))();
}
int
main
()
{
CPPA_TEST
(
test_
_
yield_interface
);
CPPA_TEST
(
test_yield_interface
);
# ifdef CPPA_DISABLE_CONTEXT_SWITCHING
CPPA_PRINT
(
"WARNING: context switching was explicitly disabled "
"using CPPA_DISABLE_CONTEXT_SWITCHING"
);
...
...
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