mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-23 01:05:14 +00:00
spi_flash: mocking should be possible now
The following three headers will be mockes: * esp_flash.h * esp_spi_flash.h * esp_partition.h * counter functions live in own header * add spi_flash sim dir for esp_err.h to Unity * modified gen_esp_err_to_name.py to ignore sim/ dir in spi_flash component Add cmock .yaml config file Add spi hal header until soc can mock the hal layer as well.
This commit is contained in:
@@ -46,7 +46,9 @@ ignore_files = [os.path.join('components', 'mdns', 'test_afl_fuzz_host', 'esp32_
|
||||
]
|
||||
|
||||
# add directories here which should not be parsed, this is a tuple since it will be used with *.startswith()
|
||||
ignore_dirs = (os.path.join('examples'), os.path.join('components', 'cmock', 'CMock', 'test'))
|
||||
ignore_dirs = (os.path.join('examples'),
|
||||
os.path.join('components', 'cmock', 'CMock', 'test'),
|
||||
os.path.join('components', 'spi_flash', 'sim'))
|
||||
|
||||
# macros from here have higher priorities in case of collisions
|
||||
priority_headers = [os.path.join('components', 'esp_common', 'include', 'esp_err.h')]
|
||||
|
Reference in New Issue
Block a user