Ruby
2.7.0p0(2019-12-25revision647ee6f091eafcce70ffb75ddf7e121e192ab217)
|
Go to the documentation of this file.
15 static int current_mode;
64 if (!
RTEST(coverages)) {
71 else if (current_mode != mode) {
78 branch_coverage(
VALUE branches)
95 for (j = 5; j <
RARRAY_LEN(branches); j += 6) {
110 method_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_obj_hide(VALUE obj)
Make the object invisible from Ruby code.
VALUE rb_ident_hash_new(void)
void rb_warn(const char *fmt,...)
void rb_clear_coverages(void)
VALUE rb_hash_aref(VALUE hash, VALUE key)
#define COVERAGE_INDEX_BRANCHES
#define RB_TYPE_P(obj, type)
void rb_reset_coverages(void)
VALUE rb_define_module(const char *name)
void rb_set_coverages(VALUE coverages, int mode, VALUE me2counter)
const RUBY_SYMBOL_EXPORT_BEGIN rb_method_entry_t * rb_resolve_me_location(const rb_method_entry_t *, VALUE[5])
void rb_raise(VALUE exc, const char *fmt,...)
#define COVERAGE_TARGET_BRANCHES
#define COVERAGE_TARGET_ONESHOT_LINES
VALUE rb_hash_lookup(VALUE hash, VALUE key)
#define COVERAGE_TARGET_METHODS
VALUE rb_get_coverages(void)
#define RARRAY_AREF(a, i)
#define COVERAGE_INDEX_LINES
void rb_hash_foreach(VALUE hash, rb_foreach_func *func, VALUE farg)
void rb_global_variable(VALUE *var)
int st_foreach(st_table *tab, st_foreach_callback_func *func, st_data_t arg)
void rb_define_module_function(VALUE module, const char *name, VALUE(*func)(ANYARGS), int argc)
Defines a module function for module.
void rb_objspace_each_objects(each_obj_callback *callback, void *data)
void rb_bug(const char *fmt,...)
VALUE rb_convert_type(VALUE, int, const char *, const char *)
Converts an object into another type.
VALUE rb_hash_aset(VALUE hash, VALUE key, VALUE val)
VALUE rb_ary_freeze(VALUE ary)
struct rb_method_definition_struct *const def
VALUE rb_ary_dup(VALUE ary)
#define COVERAGE_TARGET_LINES
VALUE rb_hash_freeze(VALUE hash)