Skip to content

Commit 8dbf526

Browse files
committed
Indicate lack of test coverage
1 parent 17a0f46 commit 8dbf526

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

lib/octocatalog-diff/util/catalogs.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,12 @@ def add_parallel_result(result, parallel_catalog_obj, key_task_tuple)
203203
end
204204
else
205205
# Something unhandled went wrong, and an exception was thrown. Reveal a generic message.
206+
# :nocov:
206207
msg = parallel_catalog_obj.exception.message
207208
message = "Catalog for '#{key}' (#{branch}) failed to compile with #{parallel_catalog_obj.exception.class}: #{msg}"
208209
message += "\n" + parallel_catalog_obj.exception.backtrace.map { |x| " #{x}" }.join("\n") if @options[:debug]
209210
raise OctocatalogDiff::Errors::CatalogError, message
211+
# :nocov:
210212
end
211213
end
212214

lib/octocatalog-diff/util/parallel.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,18 @@ def self.run_tasks_parallel(result, task_array, logger)
102102

103103
task_array.each_with_index do |task, index|
104104
reader, writer = IO.pipe
105+
106+
# simplecov doesn't see this because it's forked
107+
# :nocov:
105108
this_pid = fork do
106109
reader.close
107110
logger.reopen
108111
task_result = execute_task(task, logger)
109112
writer.write YAML.dump(task_result)
110113
exit 0
111114
end
115+
# :nocov:
116+
112117
pidmap[this_pid] = { reader: reader, index: index, start_time: Time.now }
113118
writer.close
114119
logger.debug "Launched pid=#{this_pid} for index=#{index}"

0 commit comments

Comments
 (0)