Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/smanonr..../opt/alt/ruby27/share/ruby
File: coverage.rb
require "coverage.so"
[0] Fix | Delete
[1] Fix | Delete
module Coverage
[2] Fix | Delete
def self.line_stub(file)
[3] Fix | Delete
lines = File.foreach(file).map { nil }
[4] Fix | Delete
iseqs = [RubyVM::InstructionSequence.compile_file(file)]
[5] Fix | Delete
until iseqs.empty?
[6] Fix | Delete
iseq = iseqs.pop
[7] Fix | Delete
iseq.trace_points.each {|n, type| lines[n - 1] = 0 if type == :line }
[8] Fix | Delete
iseq.each_child {|child| iseqs << child }
[9] Fix | Delete
end
[10] Fix | Delete
lines
[11] Fix | Delete
end
[12] Fix | Delete
end
[13] Fix | Delete
[14] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function