15static int current_mode;
64 if (!
RTEST(coverages)) {
71 else if (current_mode != mode) {
78branch_coverage(
VALUE branches)
95 for (j = 5; j <
RARRAY_LEN(branches); j += 6) {
110method_coverage_i(
void *vstart,
void *vend,
size_t stride,
void *data)
127 VALUE path, first_lineno, first_column, last_lineno, last_column;
128 VALUE data[5], ncoverage, methods;
132 if (
me != me2)
continue;
138 first_lineno = data[1];
139 first_column = data[2];
140 last_lineno = data[3];
141 last_column = data[4];
142 if (
FIX2LONG(first_lineno) <= 0)
continue;
144 if (
NIL_P(ncoverage))
continue;
174 if (current_mode == 0) {
224 if (!
RTEST(coverages)) {
258 int stop = 1, clear = 1;
268 ncoverages = rb_coverage_peek_result(
klass);
269 if (stop && !clear) {
VALUE rb_define_module(const char *)
void rb_raise(VALUE exc, const char *fmt,...)
void rb_bug(const char *fmt,...)
void rb_warn(const char *fmt,...)
VALUE rb_convert_type(VALUE, int, const char *, const char *)
Converts an object into another type.
VALUE rb_obj_hide(VALUE obj)
Make the object invisible from Ruby code.
int st_foreach(st_table *tab, st_foreach_callback_func *func, st_data_t arg)
struct rb_method_definition_struct *const def