Implement logic to get the coverage of each line

Signed-off-by: default avatarHenrique Varella Ehrenfried <>
parent 7455a364
......@@ -53,6 +53,14 @@ all_lines.each do |al|
mutants_not_killed <<{ |x| x }.reduce(&:|).uniq
number_of_not_killed =
score_of_not_killed =
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 =
# 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