Updated mock determination code to be more efficient applying the

feedback from @mvandervoord (Thanks).
This commit is contained in:
Peter Mendham
2016-02-01 22:48:23 +00:00
parent 4ea563e65b
commit 099b0db22b

View File

@ -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();")