Browse Source

Update config mock

Add parameter names for config mock functions.
master
TheoryOfNekomata 1 year ago
parent
commit
fce519404d
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      __mocks__/src/packages/config/IZ_config.mock.h

+ 2
- 2
__mocks__/src/packages/config/IZ_config.mock.h View File

@@ -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;
}



Loading…
Cancel
Save