RCOV__ performs the low-level tracing of the execution, gathering code coverage information in the process. The C core made available through the rcovrt extension will be used if possible. Otherwise the functionality will be emulated using set_trace_func, but this is very expensive and will fail if other libraries (e.g. breakpoint) change the trace_func.
Do not use this module; it is very low-level and subject to frequent changes. Rcov::CodeCoverageAnalyzer offers a much more convenient and stable interface.
# File lib/rcov/lowlevel.rb, line 136 def self.format_backtrace_array(backtrace) backtrace.map do |line| md = %r^([^:]*)(?::(\d+)(?::in `(.*)'))?/.match(line) raise "Bad backtrace format" unless md [nil, md[3] ? md[3].to_sym : nil, md[1], (md[2] || '').to_i] end end