mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-09-05 01:39:59 +00:00
callback: mock_verify() has no effect.
callback has a later priority than expect, so setting call_instance to CMOCK_GUTS_NONE at this point has no effect. This mock_verify() has probably been obsolete for a long time.
This commit is contained in:
@@ -79,10 +79,4 @@ class CMockGeneratorPluginCallback
|
|||||||
lines << " Mock.#{func_name}_CallbackBool = (int)0;\n"
|
lines << " Mock.#{func_name}_CallbackBool = (int)0;\n"
|
||||||
lines << " Mock.#{func_name}_CallbackFunctionPointer = Callback;\n}\n\n"
|
lines << " Mock.#{func_name}_CallbackFunctionPointer = Callback;\n}\n\n"
|
||||||
end
|
end
|
||||||
|
|
||||||
def mock_verify(function)
|
|
||||||
func_name = function[:name]
|
|
||||||
" if (Mock.#{func_name}_CallbackFunctionPointer != NULL)\n call_instance = CMOCK_GUTS_NONE;\n"
|
|
||||||
end
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user