End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Coverage.start
Coverage.start => nil
Coverage.start(:all) => nil
Coverage.start(lines: bool, branches: bool, methods: bool) => nil
Coverage.start(oneshot_lines: true) => nil
ext/coverage/coverage.c
View on GitHub ↗
static VALUE
rb_coverage_start(int argc, VALUE *argv, VALUE klass)
{
rb_coverage_setup(argc, argv, klass);
rb_coverage_resume(klass);
return Qnil;
}
Enables the coverage measurement. See the documentation of Coverage class in detail. This is equivalent to Coverage.setup and Coverage.resume.