Alexander Grund
cdb4c1494a
Document test/mock_error.hpp
...
Those test-only macros and structs are a bit tricky to read.
2022-01-25 16:24:37 +01:00
Alexander Grund
3fe72f66ea
Don't use MOCK_*_EXT in tests
...
This is not really part of the public interface anymore as the variadic functions are enough.
2022-01-24 19:11:08 +01:00
Alexander Grund
bd0a4cfc73
Reduce exposed interface (macros)
...
Move implementation details to mock_impl.hpp and remove MOCK_*_TPL macros.
Make sure all exposed macros (in mock.hpp) are properly documented.
Closes #105
2022-01-24 19:03:15 +01:00
Alexander Grund
ee72e8b9d8
Format code using Clang-Format 10 and enforce via CI
...
Makes the format of the code base uniform.
2022-01-24 16:30:59 +01:00
Alexander Grund
2dede8303b
Avoid unused function warnings in compile fail tests
...
This avoids false positives when warnings-as-error is enabled
2022-01-07 18:28:08 +01:00
Alexander Grund
78fa67ecb8
Remove test checking for failure when NOT using "typename"/TPL macro
...
This is allowed in C++20 and doesn't need to be tested anyway.
2022-01-07 17:08:17 +01:00
Alexander Grund
cf5ac87499
Remove support for auto_ptr
2022-01-07 17:08:16 +01:00
Alexander Grund
c7873cde4b
Adress review comments
2022-01-07 17:08:16 +01:00
Alexander Grund
d9f9fce6fc
Make action classes non-relocatable
...
This fixes an issue with auto_ptr. As shown by missing coverage the
actual copy/move ctors are not required as C++11 emplace functions can
be used.
Furthermore some places using shared_ptr could be replaced by unique_ptr
leading to better performance.
2022-01-07 17:08:15 +01:00
Alexander Grund
558e1ca135
Don't error when TURTLE_AUTO_PTR=ON
2022-01-07 17:08:15 +01:00
Alexander Grund
91b738da27
Avoid Boost.Bind deprecation warning
2022-01-07 17:08:14 +01:00
Alexander Grund
c2617ba360
Update from deprecated unit test header inclusion
2022-01-07 17:08:14 +01:00
Alexander Grund
823fd994ff
Remove some Boost.PP stuff
2022-01-07 17:08:14 +01:00
Alexander Grund
04dff97fde
Use explicit streaming ops instead of Boost.LexicalCast
2022-01-07 17:08:14 +01:00
Alexander Grund
898a5a4524
Document and improve is_functor
2022-01-07 17:08:13 +01:00
Alexander Grund
446e70be53
Remove boost::result_of
2022-01-07 17:08:13 +01:00
Alexander Grund
9af9f0e2ea
Replace Boost.TypeInfo
2022-01-07 17:08:13 +01:00
Alexander Grund
5ef17d0e33
Include examples in CI tests
...
Also fix and update examples and documentation where required
This allows to make sure examples are actually runnable avoiding them to
become outdated
2022-01-07 17:08:13 +01:00
Alexander Grund
a6aa140148
Remove superflous test instantiations
2022-01-07 17:08:12 +01:00
Alexander Grund
ed8c58d813
Remove Boost.Typeof
2022-01-07 17:08:12 +01:00
Alexander Grund
52d21a86af
Get rid of BOOST_IDENTITY_TYPE
2022-01-07 17:08:12 +01:00
Alexander Grund
a426e02759
Replace Boost.Bind by std::bind and lambdas
2022-01-07 17:08:12 +01:00
Alexander Grund
35e43d58a6
Use std::reference_wrapper instead of boost
2022-01-07 17:08:12 +01:00
Alexander Grund
353849e9ad
Use default/delete for ctor/dtor
2022-01-07 17:08:11 +01:00
Alexander Grund
35fa6e63e6
Use std smart pointers in code
2022-01-07 17:08:11 +01:00
Alexander Grund
2f72d5639e
Assume existance of lambdas
2022-01-07 17:08:11 +01:00
Alexander Grund
9faab7749c
Assume existance of <functional>
2022-01-07 17:08:11 +01:00
Alexander Grund
f154a1a22a
Assume existance of smart pointers
2022-01-07 17:08:11 +01:00
Alexander Grund
3b3700fda6
Assume support for variadic macros
2022-01-07 17:08:11 +01:00
Alexander Grund
f678f4d91f
Assume nullptr existance
2022-01-07 17:08:10 +01:00
Alexander Grund
cf330e8c86
Remove usage of Boost.MPL and reduce Boost.FunctionTypes usage
...
They are known to be slow on compilation and C++11 offer better alternatives
2022-01-07 17:08:10 +01:00
Alexander Grund
df5b77af95
Replace Boost.TypeTraits by std equivalents
2022-01-07 17:08:10 +01:00
Alexander Grund
9e664b52ab
Replace Boost.Move by std equivalents
2022-01-07 17:08:10 +01:00
Mathieu Champlon
931345c722
Merge pull request #95 from Flamefire/mock_method_wo_sig
...
Auto-deduce method sig in MOCK_METHOD_(NON)CONST
2020-08-03 07:30:39 +02:00
Alexander Grund
675969eafd
Auto-deduce method sig in MOCK_METHOD_(NON)CONST
...
Fixes #93
2020-07-27 17:05:05 +02:00
Alexander Grund
1083954cfe
Remove remaining references to Boost.Mock
2020-07-16 13:08:46 +02:00
Alexander Grund
074c82315c
[CI] Require C++14 on travis
2020-07-14 17:42:52 +02:00
Alexander Grund
70ae7674e5
Disable -Wunused-function for tests
2020-04-18 18:18:43 +02:00
Alexander Grund
8530f691a1
Reduce amount of compilations
...
Remove defined_[12].cpp from all but 1 test per test file
This reduces the amount of compilations by 2*25=50 per configuration for a total of 200 (debug/release, static/shared)
2020-04-18 13:59:01 +02:00
Alexander Grund
6b0a438517
Fix link error in test_defined
2020-04-17 20:31:47 +02:00
Alexander Grund
a1a223901a
Avoid unused function warnings in tests
2020-04-14 10:42:25 +02:00
Alexander Grund
e13e913a1e
Remove main.cpp and add warning free build test
...
The main.cpp speeds up builds but fails for static boost.Test builds as
it is linked before Boost.Test which removes the required symbols
Enabling warning allows consumers of Turtle to build with warnings enabled
2020-04-14 10:40:28 +02:00
Flamefire
af49b04c19
Add CMake files
2019-12-28 13:58:24 +01:00
Alexander Grund
72e0daae5c
Implement and use simple singleton
...
Based on old boost::unit_test::singleton
2018-11-22 14:41:11 +01:00
Alexander Grund
f402c6161e
Fix C++98 compatibility
2018-11-22 10:12:00 +01:00
Mathieu Champlon
cd5f911f6d
Fixed parameter forwarding bug in mock functions
2018-04-08 17:48:14 +02:00
Mathieu Champlon
20e7d50568
Fixed test failing for gcc
2018-04-08 15:16:49 +02:00
Mathieu Champlon
4455222a62
Removed support for directly mocking a protected member function
...
Taking a function pointer on a base member protected function is actually invalid.
This could work with a pointer on the derived class member function, that is &derived::method instead of &base::method however there is no way to pass the derived class from MOCK_BASE_CLASS to the mock::detail::base helper if template classes are to be supported.
Anyway the now documented workaround is simple enough and the same as for private member functions.
As a side note the changes from ed36823235 might not be needed any more…
2018-04-08 15:16:49 +02:00
Mathieu Champlon
a178fc442a
Removed stdcall tests and examples for all compilers but msvc
2018-04-08 15:16:48 +02:00
Mathieu Champlon
860e072439
Fixed perfect forwarding bug
2018-03-17 22:20:04 +01:00