Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
a62e9d35
Commit
a62e9d35
authored
Mar 23, 2019
by
Simon Giesecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: internal functions present in header file
Solution: remove declaration and make functions static
parent
5d74eba6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
testutil_unity.cpp
tests/testutil_unity.cpp
+2
-2
testutil_unity.hpp
tests/testutil_unity.hpp
+0
-5
No files found.
tests/testutil_unity.cpp
View file @
a62e9d35
...
...
@@ -124,7 +124,7 @@ void recv_string_expect_success (void *socket_, const char *str_, int flags_)
TEST_ASSERT_EQUAL_STRING_LEN
(
str_
,
buffer
,
len
);
}
void
*
internal_manage_test_context
(
bool
init_
,
bool
clear_
)
static
void
*
internal_manage_test_context
(
bool
init_
,
bool
clear_
)
{
static
void
*
test_context
=
NULL
;
if
(
clear_
)
{
...
...
@@ -141,7 +141,7 @@ void *internal_manage_test_context (bool init_, bool clear_)
return
test_context
;
}
void
internal_manage_test_sockets
(
void
*
socket_
,
bool
add_
)
static
void
internal_manage_test_sockets
(
void
*
socket_
,
bool
add_
)
{
static
void
*
test_sockets
[
MAX_TEST_SOCKETS
];
static
size_t
test_socket_count
=
0
;
...
...
tests/testutil_unity.hpp
View file @
a62e9d35
...
...
@@ -101,13 +101,8 @@ void recv_array_expect_success (void *socket_,
TEST_ASSERT_EQUAL_UINT8_ARRAY
(
array_
,
buffer
,
SIZE
);
}
// do not call from tests directly, use setup_test_context, get_test_context and teardown_test_context only
void
*
internal_manage_test_context
(
bool
init_
,
bool
clear_
);
#define MAX_TEST_SOCKETS 128
void
internal_manage_test_sockets
(
void
*
socket_
,
bool
add_
);
void
setup_test_context
();
void
*
get_test_context
();
...
...
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