mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-06-01 16:18:03 +08:00
Updated mock determination code to be more efficient applying the
feedback from @mvandervoord (Thanks).
This commit is contained in:
@ -203,10 +203,7 @@ class UnityTestRunnerGenerator
|
||||
output.puts(" GlobalVerifyOrder = 0;")
|
||||
output.puts(" GlobalOrderError = NULL;")
|
||||
end
|
||||
mocks = []
|
||||
mock_headers.each do |mock|
|
||||
mocks << File.basename(mock)
|
||||
end
|
||||
mocks = mock_headers.map {|mock| File.basename(mock)}
|
||||
mocks.each do |mock|
|
||||
mock_clean = TypeSanitizer.sanitize_c_identifier(mock)
|
||||
output.puts(" #{mock_clean}_Init();")
|
||||
|
Reference in New Issue
Block a user