mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-11-11 09:50:35 +00:00
The runner names each mock's Init, Verify and Destroy calls by the mock's filename alone. Two mocks sharing a filename in different folders therefore collapse to the same calls. With :mock_name_include_folder enabled the runner keeps the folder a mock is included from, so uart/MockConfig.h yields uart_MockConfig_Init(). CMock gains a matching option that names its generated functions the same way. The option defaults to off and leaves existing runners unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
20 lines
617 B
C
20 lines
617 B
C
/* =========================================================================
|
|
Unity - A Test Framework for C
|
|
ThrowTheSwitch.org
|
|
Copyright (c) 2007-26 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
|
SPDX-License-Identifier: MIT
|
|
========================================================================= */
|
|
|
|
#ifndef UART_MOCK_CONFIG_H
|
|
#define UART_MOCK_CONFIG_H
|
|
|
|
extern int uart_MockConfig_Init_Counter;
|
|
extern int uart_MockConfig_Verify_Counter;
|
|
extern int uart_MockConfig_Destroy_Counter;
|
|
|
|
void uart_MockConfig_Init(void);
|
|
void uart_MockConfig_Verify(void);
|
|
void uart_MockConfig_Destroy(void);
|
|
|
|
#endif
|