examples/coverage/tracepoint.rb in covered-0.11.0 vs examples/coverage/tracepoint.rb in covered-0.12.0
- old
+ new
@@ -1,7 +1,6 @@
-
-trace_point = TracePoint.new(:call, :line) do |trace|
+trace_point = TracePoint.new(:call, :return, :line, :c_call, :c_return, :b_call, :b_return) do |trace|
puts [trace.path, trace.lineno].join(":")
end
trace_point.enable