-
Notifications
You must be signed in to change notification settings - Fork 113
Added subscription_map tests. #687
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The tests forcused on using it on the broker.
|
@redboltz To build the unit test with MSVC with boost dynamic linkage, i need to define BOOST_TEST_SOURCE to be able to compile the tests. They do say that 'this is a hack': http://boost.2283326.n4.nabble.com/Boost-unit-test-cpp-problem-when-try-to-compile-simple-program-td2596687.html // Copyright Takatoshi Kondo 2015
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#if !defined(MQTT_TEST_MAIN_HPP)
#define MQTT_TEST_MAIN_HPP
#define BOOST_TEST_SOURCE
#define BOOST_TEST_MODULE mqtt_client_cpp_test
#include <boost/test/unit_test.hpp>
#endif // MQTT_TEST_MAIN_HPP |
It always inserts.
Now #687 is unstable. Several hours ago , the Linux CI failure is caused by environmental issue. It seems that the issue is fixed by github actions side. And then, new hash_value issue is reported. I need to fix it. |
08d4141 to
b5bafae
Compare
|
I will ask you to rebase #688 from sub_map_test after I fixed the problem. |
a5a9369 to
e4d0f0f
Compare
e4d0f0f to
d2e512e
Compare
Codecov Report
@@ Coverage Diff @@
## master #687 +/- ##
==========================================
- Coverage 82.70% 82.23% -0.47%
==========================================
Files 46 47 +1
Lines 7082 7100 +18
==========================================
- Hits 5857 5839 -18
- Misses 1225 1261 +36 |
…th to insert and return whether element was inserted or already exists
…_map return the number of elements that were removed
Renamed insert_or_update and update from multiple_subscription_map bo…
It seems that memory swap happens.
The same macro is defined at Linux build. They are pure logical macros. It is good enough.
CI optimization.
The tests forcused on using it on the broker.