- Renamed :strict_mock_calling option to :fail_on_unexpected_calls for clarity.

This commit is contained in:
Mark VanderVoord
2017-09-08 14:54:55 -04:00
parent 413c803543
commit 43fa31380d
6 changed files with 75 additions and 75 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ class CMockConfig
:attributes => ['__ramfunc', '__irq', '__fiq', 'register', 'extern'],
:c_calling_conventions => ['__stdcall', '__cdecl', '__fastcall'],
:enforce_strict_ordering => false,
:strict_mock_calling => true,
:fail_on_unexpected_calls => true,
:unity_helper_path => false,
:treat_as => {},
:treat_as_void => [],
+2 -2
View File
@@ -18,7 +18,7 @@ class CMockGenerator
@weak = @config.weak
@ordered = @config.enforce_strict_ordering
@framework = @config.framework.to_s
@strict_mock_calling = @config.strict_mock_calling
@fail_on_unexpected_calls = @config.fail_on_unexpected_calls
@subdir = @config.subdir
@@ -204,7 +204,7 @@ class CMockGenerator
file << " memset(&Mock, 0, sizeof(Mock));\n"
file << functions.collect {|function| @plugins.run(:mock_destroy, function)}.join
unless (@strict_mock_calling)
unless (@fail_on_unexpected_calls)
file << functions.collect {|function| @plugins.run(:mock_ignore, function)}.join
end