浏览代码

Update config mock

Add parameter names for config mock functions.
master
父节点
当前提交
fce519404d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      __mocks__/src/packages/config/IZ_config.mock.h

+ 2
- 2
__mocks__/src/packages/config/IZ_config.mock.h 查看文件

@@ -4,11 +4,11 @@
#include <bdd-for-c-mocks.h>
#include "../../../src/packages/config/IZ_config.h"

mock(IZ_ConfigInitialize) IZ_ConfigInitializeResult IZ_ConfigInitialize(IZ_ConfigItem[], const char*, u8, const char*[]) {
mock(IZ_ConfigInitialize) IZ_ConfigInitializeResult IZ_ConfigInitialize(IZ_ConfigItem _item[], const char* _config_path, u8 _argc, const char* _argv[]) {
mock_return(IZ_ConfigInitialize) IZ_CONFIG_INITIALIZE_RESULT_OK;
}

mock(IZ_ConfigSave) IZ_ConfigSaveResult IZ_ConfigSave(IZ_ConfigItem[], const char*) {
mock(IZ_ConfigSave) IZ_ConfigSaveResult IZ_ConfigSave(IZ_ConfigItem _item[], const char* _config_path) {
mock_return(IZ_ConfigSave) 0;
}



正在加载...
取消
保存