Style fixes

This commit is contained in:
Roland Stahn
2025-06-03 13:51:15 +02:00
committed by GitHub
parent bd41b3f939
commit 3ba7de2cb7
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ class CMockGeneratorPluginArray
@config = config
@ptr_handling = @config.when_ptr
@ordered = @config.enforce_strict_ordering
@error_stubs = @config.create_error_stubs
@error_stubs = @config.create_error_stubs
@utils = utils
@unity_helper = @utils.helpers[:unity_helper]
@priority = 8
+1 -1
View File
@@ -53,7 +53,7 @@ class CMockGeneratorPluginExpect
lines << "void #{function[:name]}_CMockExpect(UNITY_LINE_TYPE cmock_line, #{function[:args_string]});\n"
else
lines << "#define #{function[:name]}_Expect(#{function[:args_call]}) TEST_FAIL_MESSAGE(\"#{function[:name]} requires _ExpectAndReturn\");\n" if @error_stubs
lines << "#define #{function[:name]}_ExpectAndReturn(#{function[:args_call]}, cmock_retval) #{function[:name]}_CMockExpectAndReturn(__LINE__, #{function[:args_call]}, cmock_retval)\n"
lines << "#define #{function[:name]}_ExpectAndReturn(#{function[:args_call]}, cmock_retval) #{function[:name]}_CMockExpectAndReturn(__LINE__, #{function[:args_call]}, cmock_retval)\n"
lines << "void #{function[:name]}_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, #{function[:args_string]}, #{function[:return][:str]});\n"
end
lines
@@ -10,7 +10,7 @@ class CMockGeneratorPluginExpectAnyArgs
def initialize(config, utils)
@config = config
@error_stubs = @config.create_error_stubs
@error_stubs = @config.create_error_stubs
@utils = utils
@priority = 3
end
+1 -1
View File
@@ -10,7 +10,7 @@ class CMockGeneratorPluginIgnore
def initialize(config, utils)
@config = config
@error_stubs = @config.create_error_stubs
@error_stubs = @config.create_error_stubs
@utils = utils
@priority = 2
end
@@ -10,7 +10,7 @@ class CMockGeneratorPluginIgnoreStateless
def initialize(config, utils)
@config = config
@error_stubs = @config.create_error_stubs
@error_stubs = @config.create_error_stubs
@utils = utils
@priority = 2
end