You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: lib/slather/coverage_file.rb
+9-5
Original file line number
Diff line number
Diff line change
@@ -68,8 +68,13 @@ def all_lines
68
68
end
69
69
end
70
70
71
-
defline_number_in_line(line)
72
-
line.split(':')[1].strip.to_i
71
+
defcleaned_gcov_data
72
+
data=gcov_data.encode('UTF-8','binary',invalid: :replace,undef: :replace,replace: '').gsub(/^function(.*) called [0-9]+ returned [0-9]+% blocks executed(.*)$\r?\n/,'')
73
+
data.gsub(/^branch(.*)$\r?\n/,'')
74
+
end
75
+
76
+
defraw_data
77
+
self.gcov_data
73
78
end
74
79
75
80
defline_coverage_data
@@ -84,9 +89,8 @@ def line_coverage_data
84
89
end
85
90
end
86
91
87
-
defcleaned_gcov_data
88
-
data=gcov_data.encode('UTF-8','binary',invalid: :replace,undef: :replace,replace: '').gsub(/^function(.*) called [0-9]+ returned [0-9]+% blocks executed(.*)$\r?\n/,'')
0 commit comments