class method
Coverage.start
(?lines: bool, ?branches: bool, ?methods: bool, ?eval: bool) -> nil
(oneshot_lines: bool, ?branches: bool, ?methods: bool, ?eval: bool) -> nil
(:all) -> nil
Coverage.start => nil
Coverage.start(:all) => nil
Coverage.start(lines: bool, branches: bool, methods: bool, eval: 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.