Alexander Grund
dd5f7552b3
Remove MOCK_(CONST_)_METHOD_EXT detail macros
2025-05-02 13:32:39 +02:00
Alexander Grund
f6200f9024
Require qualifiers for MOCK_METHOD_EXT
2025-05-02 13:32:39 +02:00
Alexander Grund
a8f0253753
Take modifiers as tuple
2025-05-02 13:32:39 +02:00
Alexander Grund
09bb6b5371
Change MOCK_METHOD_EXT to add support for arbitrary amounts of method modifiers
2025-05-02 13:32:39 +02:00
Alexander Grund
8151fe20c7
Merge pull request #130 from Flamefire/appveyor-cxx
...
Enhance CI
2025-05-02 12:37:41 +02:00
Alexander Grund
a334c4fb3b
Split appveyor jobs to fit time limit
2025-04-30 15:40:17 +02:00
Alexander Grund
78a4fbe129
Fix test in C++17 and up
2025-04-30 12:36:56 +02:00
Alexander Grund
c34cbb56ab
Add MOCK_CXX_VERSION macro
2025-04-30 12:32:02 +02:00
Alexander Grund
f18da714f2
Make inspect target explicit
2025-04-30 09:28:18 +02:00
Alexander Grund
2e2a6525ba
Appveyor: Add VS 2022 builds
2025-04-30 09:28:18 +02:00
Alexander Grund
3555de3c89
Appveyor: Update Boost version for VS 2019
2025-04-30 09:11:20 +02:00
Flamefire
d7c80fbf28
GHA: Fix ownership of repo in container
...
Avoid:
> fatal: detected dubious ownership in repository at '/__w/turtle/turtle'
by adding that path to the git `safe.path`.
This is caused by the command(s) running inside the container but the
folder being created outside the container so the owner inside the container is not what is expected by git.
2025-04-30 09:11:20 +02:00
Alexander Grund
20dafe08a6
Remove some detail macros and rename parameters for readability
2025-04-21 11:58:18 +02:00
Alexander Grund
cd6f5ea70d
Fix GHA CI
...
Move Ubuntu 20.04 tests to containers as that runner image has been removed.
2025-04-21 11:21:25 +02:00
Alexander Grund
26583bebf3
GHA: Fix doc build
...
Use Boost 1.87 to include fix for libxslt 1.1.35: https://github.com/boostorg/boostbook/issues/14
2025-04-05 18:38:43 +02:00
Alexander Grund
d675a05d95
Require CMake 3.16
...
With CMake 4 compatibility with CMake 3.5 was dropped and 3.10 deprecated.
Use a reasonably new lower bound based on Ubuntu 20
2025-04-05 18:27:25 +02:00
Mathieu Champlon
d8808f56e9
Merge pull request #125 from mat007/prepare-release
...
Prepare v2.0.0
2024-10-02 13:33:51 +02:00
Mathieu Champlon
e9f6716aa8
Bump version to 2.0.0
2024-09-29 20:42:36 +02:00
Mathieu Champlon
2a54301cc3
Merge pull request #123 from mat007/prepare-release
...
Prepare v2.0.0 release
2024-09-29 19:50:20 +02:00
Mathieu Champlon
5b498ff551
Add more prominent link to documentation
2024-09-29 17:54:26 +02:00
Mathieu Champlon
9d5689a588
Bump requirement to a C++14 compiler
2024-09-29 17:54:26 +02:00
Mathieu Champlon
ebadb64b6e
Prepare v2.0.0 release
2024-09-29 17:54:26 +02:00
Mathieu Champlon
636c59b93a
Merge pull request #124 from mat007/fix-ci
...
Fix CI
2024-09-29 14:52:23 +02:00
Mathieu Champlon
80f8cc5e49
Test more recent compiler and boost versions
2024-09-29 14:08:56 +02:00
Mathieu Champlon
6b735c4c03
Bump actions/checkout to v4
2024-09-28 12:25:38 +02:00
Mathieu Champlon
a3c9605237
Merge pull request #122 from mat007/rename-master-to-main
...
Rename master branch to main
2024-09-28 11:47:52 +02:00
Mathieu Champlon
f6f3990ddf
Rename master branch to main
2024-09-28 11:06:17 +02:00
Alexander Grund
1796f40e58
Merge pull request #119 from Flamefire/update-gha
...
GHA: Update deprecated images and workflows
2023-08-15 12:13:27 +02:00
Alexander Grund
5aff52fcca
Use newer CMake for Ubuntu 18 to make it find newer Boost
2023-08-15 09:47:38 +02:00
Alexander Grund
418d12b637
GHA: Update deprecated images and workflows
...
The Ubuntu 18.04 runners were deprecated and removed.
`actions/checkout@v2` uses node12 which is deprecated.
Same for `actions/cache@v2`
2023-08-13 20:33:25 +02:00
Alexander Grund
4b9d9aa4cb
Update links for download doc generation deps on CI
...
The FTP URLs don't seem to work anymore
2023-08-12 21:19:37 +02:00
Alexander Grund
5e196bac29
Replace travis CI badge by GHA badge in README
2023-08-11 14:13:04 +02:00
Alexander Grund
127d7e4659
Merge pull request #117 from Flamefire/remove-fixture
...
Improve use of fixture in test_matcher
2023-01-07 13:31:00 +01:00
Alexander Grund
f191de5a5a
Add test for serializing a string or functor matcher
2023-01-07 12:06:44 +01:00
Alexander Grund
9f5a8131ae
Download docbook DTD/XSL
2023-01-05 18:49:06 +01:00
Alexander Grund
6fecabcad5
Bring back the fixture
...
Without using a `std::string` the compiler may put the `const char*` C-Strings to the same memory address so our test might succeed when it should not.
Add a short descriptive comment and check the property where it is used.
2023-01-03 18:55:46 +01:00
Alexander Grund
700ceb9f4d
Remove fixture of tests in test_matcher
...
The fixture is not really required and can be replaced by definitions in
each test which even improves readability.
Also the tests are partially redundant due to implicit conversions so
add test in test_function for actual usage testing of string comparisons.
2023-01-03 18:55:45 +01:00
Alexander Grund
fa29eec0bb
Merge pull request #116 from AlexSmithEtas/fix-issue-115-null-c-string-derefs
...
Avoid dereferencing NULL C-strings
Fixes #115
2023-01-03 18:53:40 +01:00
Alex Smith
e55342385e
Review corrections
...
Corrected stylistic mistakes and simplified a couple of the new tests.
2023-01-03 16:28:27 +00:00
Alex Smith
dd7340e5f7
Avoid dereferencing nullptr C-style strings
...
Added runtime checks for C-style strings (char*) being nullptr during matching and serialization.
This fix prevents nullptr dereferences in the case that the null character pointer (as opposed to the null nullptr_t) is expected and in the case that a non-null string is expected but nullptr is actually passed.
2023-01-02 17:38:26 +00:00
Alex Smith
528761b180
Unit test nullptr C-style strings
...
Added unit tests for the cases of matching and serializing C-style strings (char*) that are nullptr.
(As of this revision, these new tests correctly fail, except for the test of mock::equal; fix to follow.)
2023-01-02 17:30:54 +00:00
Alexander Grund
0dd0dfa15f
Merge pull request #110 from Flamefire/remove_pp_iterate
...
Replace Boost PP_Iterate by C++11 variadic templates
2022-02-16 16:04:05 +01:00
Alexander Grund
c8c6af273e
Don't return *this in expectation::with
...
Chaining is done via the wrapper class not the expectation class
2022-02-10 17:46:01 +01:00
Alexander Grund
3845d57531
Use BOOST_PP_VARIADIC_SIZE instead of custom implementation
2022-02-10 17:46:01 +01:00
Alexander Grund
bb77c1702f
Add support for unlimited number of sequences in one call
...
This removes the need for those preprocessor macros and the MOCK_MAX_SEQUENCES define.
2022-02-10 17:46:00 +01:00
Alexander Grund
c34e4224fe
Remove benchmarks using MOCK_MAX_ARGS
...
No longer required.
2022-02-10 17:46:00 +01:00
Alexander Grund
f3dc82f305
Rename move_helper.hpp to ref_arg.hpp and use template alias
...
Shortens the call sites a lot: `typename ref_arg<Ts>::type` -> `ref_arg_t<Ts>`
MSVC 2017 seems to have issues with std::conditional_t so use the C++11
variant here.
2022-02-10 17:46:00 +01:00
Alexander Grund
baaaa15489
Workaround compiler issues (constant conditions, compiler bugs...)
...
MSVC has issues with a tuple of references of incomplete classes and `virtual ~value() = default;`
Some compilers warn for constant expressions in the for-loop-condition
2022-02-10 17:46:00 +01:00
Alexander Grund
fca30e7780
Replace Boost PP_Iterate by C++11 variadic templates
...
This allows support for any number of arguments and makes setting MOCK_MAX_ARGS unnecessary.
It also allows for easier debugging due to being able to step into actual code instead of preprocessor generated stuff
2022-02-10 17:46:00 +01:00
Alexander Grund
90d9ac8055
Merge pull request #112 from Flamefire/improve_tests
...
Improve tests
2022-02-10 17:45:17 +01:00