Roland Stahn
d20dca34ab
Add option 'create_error_stubs' in before
2025-06-03 13:14:23 +02:00
bal-stan
2bcc723e10
Always cast memcpy dest pointers to const void
2025-02-13 18:06:27 +00:00
Mark VanderVoord
a60383ec34
Update licenses to new standards... plus New Years bump
2025-01-01 12:05:55 -05:00
Mark VanderVoord
9cc8fb5302
Let's enable validation of examples. failures should trip errors.
...
Also make them verbose so we can see what is going on.
2024-04-02 18:44:35 -04:00
Mark VanderVoord
ecaccb428b
🪲 remove unused AbortFrame ( #316 )
2024-03-26 22:29:06 -04:00
Mark VanderVoord
597a6d86eb
Finish giving clues when you've chosen the wrong AndReturn version.
...
ReturnArrayThruPtr (and others) now protect sizes in parenthesis #415
2024-03-21 11:35:21 -04:00
Mark VanderVoord
07a0e257b5
🪲 Added fail messages when using Expect for ExpectAndReturn or vice versa. (see issue #462 )
2024-03-14 08:59:31 -04:00
Mark VanderVoord
083bbd6a38
Add to verbosity of failures to find prototypes in headers.
2024-02-21 13:52:07 -05:00
Mark VanderVoord
c2e3c742ba
Fix test for const feature of return-thru-pointer
2023-11-22 20:05:20 -05:00
Mark VanderVoord
b032cfa09b
Merge branch 'master' into cmock_2_6_rc
2023-11-22 19:58:51 -05:00
Mark VanderVoord
9192a95089
Merge pull request #453 from NovaNekmit/NovaNekmit-patch-1
...
Make ReturnMemThruPtr pointers const
2023-11-22 19:57:55 -05:00
Mark VanderVoord
a642b1fe49
Update to latest Unity and therefore newer Rubocop standards. Tweaked scripts to match latest standards.
2023-11-22 17:40:07 -05:00
Mark VanderVoord
161d58bf54
Merge branch 'master' into cmock_2_6_rc
2023-11-13 22:33:50 -05:00
Mark VanderVoord
6cf8fb9b71
Fix to incorrect handling of static inlines.
...
Fix to Ruby deprecated interfaces.
Fix to keep up with new C standards.
2023-11-13 22:33:16 -05:00
Hannes Bachl
5328a51508
add check to prevent sizeof(void) generation
2023-08-23 11:32:58 +02:00
NovaNekmit
6d9236d4ee
Fix typos
2023-08-09 21:58:16 +02:00
NovaNekmit
9b34c01213
Update test
2023-08-09 17:12:42 +02:00
alufers
3caf511b8f
fix: Don't smush macros which have an escaped empty line at the end
...
nanopb has a habit of generating macros which end with an escaped empty line (for example for messages which are empty). They look like this:
#define some_msg_t_FIELDLIST(X, a) \
#define some_msg_t_CALLBACK NULL
This caused CMock to strip all of the newlines after the backslash instead of only one, which the backslash was escaping.
This in turn caused both the macros to be in one line, causing a compile error in the generated mock.
2023-04-26 14:16:41 +02:00
Mark VanderVoord
e4ba3be48b
newer rubies are confused about the first array argument to some functions when the array is empty... so we name the parameters when we pass them to clear things up.
2023-02-07 08:00:51 -05:00
Mark VanderVoord
bbfaf0425f
Handle yaml.load in a way that is ruby version agnostic.
2023-02-06 16:46:48 -05:00
Mark VanderVoord
a58808d424
Fixed bug #402 , getting confused with __attribute__ directives with spacing.
2023-01-11 15:43:48 -05:00
Mark VanderVoord
902b6c8b3d
Fix bug in parenthetical statements being misinterpreted as functions. (Issue #414 )
2023-01-10 15:35:54 -05:00
Mark VanderVoord
91bb49c4a8
Fix same bug as PR #354 , but as one line.
2023-01-09 14:50:56 -05:00
Mark VanderVoord
16d12416fd
Force ourselves to test with Ruby 3.
...
Fix some issues that have been lurking.
2023-01-09 14:16:30 -05:00
Yago Fontoura Do Rosario
5eebd713ba
Added extern "C" to cmock generated headers
2022-09-07 21:16:28 +02:00
Mark VanderVoord
9bb250ea4a
Update so only config is shared. Everything else about the current job is passed.
2021-02-05 15:15:14 -05:00
Mark VanderVoord
dd00b96f0d
Fix broken tests for supporting exclude_setjmp. Verify cexception won't be run when this is enabled.
2021-01-29 10:47:52 -05:00
Mark VanderVoord
38d6dccc8e
Show the correct badge for this project.
...
Fix a bug in a test.
2021-01-16 22:15:36 -05:00
Mark VanderVoord
4dd557f2df
Merge pull request #311 from andred/master
...
allow compilation with stricter warnings
2021-01-07 18:02:24 -05:00
Mark VanderVoord
e352bb8c3b
Merge pull request #340 from CezaryGapinski/fix-static-variables-for-enabled-inline-funcs-mocks
...
Fix static variables detection in headers for enabled inline function mocks
2021-01-07 17:57:36 -05:00
Mark VanderVoord
63f5e2f962
Merge pull request #341 from laurensmiers/master
...
Remove comments before start of inline-function-parsing
2021-01-07 17:57:17 -05:00
Cezary Gapinski
f5984f44e8
Add test to leaves static variables for enabled inline functions mocks
2020-12-14 21:12:11 +01:00
cloudsftp
d304ff273a
add StopIgnore to new plugin
2020-08-19 11:25:27 +02:00
cloudsftp
61ed5cc7f8
add more tests for the new plugin
2020-08-19 10:17:05 +02:00
cloudsftp
496cabff10
add more test cases for the new plugin
2020-08-18 16:56:36 +02:00
cloudsftp
94ca645061
add first simple test and remove warning "unused parameter"
2020-08-18 16:31:45 +02:00
cloudsftp
d36662da2a
repair failing unit tests for plugins
2020-08-18 15:33:51 +02:00
laurens
541e7034ad
Remove comments before start of inline-function-parsing
2020-06-13 12:49:33 +02:00
André Draszik
ec6fa2c516
Revert "drop unnecessary prototype (immediately before definition)"
...
This reverts commit 7fbeb40965 .
This causes compilation warnings / errors when a project uses
-Wmissing-prototypes compilation flags for safety reasons:
.../test/mocks/mock_logMessages.c:685:6: warning: no previous prototype for ‘CMockExpectParameters_log_message’ [-Wmissing-prototypes]
685 | void CMockExpectParameters_log_message(CMOCK_log_message_CALL_INSTANCE* cmock_call_instance, const char* logMessage, int messageID, severity_t severityIn)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
etc.
Signed-off-by: André Draszik <git@andred.net >
2020-05-25 16:35:54 +01:00
André Draszik
2568a3657f
return_thru_ptr: fix Wsign-conversion warning
...
Compiling a source base / test with Wsign-conversion enabled, gives
the following warning:
build/test/mocks/mock_logMessages.c: In function ‘countLogMessages’:
build/test/mocks/mock_logMessages.c:749:26: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
749 | cmock_call_instance->ReturnThruPtr_fileIn_Size);
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
The ReturnThruPtr_XXX_Size is used as argument to a call to memcpy(),
which expects size_t (unsigned) for a good reason. The size leading
to this call is being determined using sizeof(), so there appears
no reason to ever convert this to (signed) int.
Stop converting size_t to int, and thereby fix the compiler
warning.
Signed-off-by: André Draszik <git@andred.net >
2020-05-25 07:45:34 +01:00
Mark VanderVoord
6259630f00
Merge pull request #301 from booz-allen-hamilton/cpp-static-min
...
add support for mocking C++ static class member methods
2020-05-03 13:57:14 -04:00
Mark VanderVoord
fb8f48a10d
Fix tests that were left behind.
2020-05-03 08:53:51 -04:00
Tuc-An
e06540f3d7
add support for mocking C++ static class member methods
2020-04-06 11:20:15 -04:00
Tuc-An
7fbeb40965
drop unnecessary prototype (immediately before definition)
2020-03-27 11:17:14 -04:00
Tuc-An
cfcca2e43e
convert Boolean values from int to char to reduce memory
2020-03-25 10:00:05 -04:00
mvandervoord
11a278eebf
astyle not on travis, therefore don't test with CI
2020-03-19 11:40:30 -04:00
mvandervoord
13ee7c9eec
Further cleanup based on server results
2020-03-19 11:29:17 -04:00
mvandervoord
9b393ad4fb
Further style changes to match standard.
...
Pull in latest Unity.
Update testing parameters to include Ruby 2.7
2020-03-19 10:00:12 -04:00
mvandervoord
67858837d1
Update coding style to match our own official coding guidelines
2020-03-18 19:16:58 -04:00
mvandervoord
0f196a52cf
Deal with more complex array length expressions. (thanks @jlindgren90 !)
2020-03-18 15:19:23 -04:00