Implement logic to get the coverage of each line

Signed-off-by: 's avatarHenrique Varella Ehrenfried <hve13@inf.ufpr.br>
parent 7455a364
......@@ -53,6 +53,14 @@ all_lines.each do |al|
mutants_not_killed << temp_array.map{ |x| x }.reduce(&:|).uniq
end
number_of_not_killed = Array.new
score_of_not_killed = Array.new
i = 0
limit = mutants_not_killed.size
while i < limit do
m_size = mutants_not_killed[i].size
number_of_not_killed[i] = m_size
score_of_not_killed[i] = m_size.fdiv(matrix_size)
i = i.next
end
# TODO: Implement logic to count how many mutatans are alive using the mutants_not_killed
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment