mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-06-05 21:15:20 +00:00
Style fixes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user