Files
Unity/test/testdata/uart/MockConfig.h
Michael KarleskyandClaude Opus 5.5 15e20f4a16 Add :mock_name_include_folder runner option
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]>
2026-10-08 13:11:02 -04:00

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