Branch Coverage

src/class_plain_class.c
Criterion Covered Total %
branch 44 78 56.4


line true false branch
28 11 0 if(value && (!SvPOK(value) || !SvCUR(value))) {
11 0 if(value && (!SvPOK(value) || !SvCUR(value))) {
2 9 if(value && (!SvPOK(value) || !SvCUR(value))) {
33 11 0 if (strcmp(name, "isa") == 0) {
11 0 if (strcmp(name, "isa") == 0) {
11 0 if (strcmp(name, "isa") == 0) {
11 0 if (strcmp(name, "isa") == 0) {
36 9 2 if (value) {
40 8 1 if (superstash) {
47 8 0 AV* super_class_isa = get_av(SvPV_nolen(super_class_isa_name), GV_ADD | (SvFLAGS(super_class_isa_name) & SVf_UTF8));
48 8 0 IV super_class_isa_classes_length = av_count(super_class_isa);
50 5 3 if (new_method) {
53 1 4 else if (super_class_isa_classes_length > 0) {
65 2 7 if(is_load_module) {
72 0 9 if(!superstash)
79 9 0 AV *isa = get_av(SvPV_nolen(isa_name), GV_ADD | (SvFLAGS(isa_name) & SVf_UTF8));
89 0 0 else if (strcmp(name, "does") == 0) {
101 0 0 if (role_name) {
109 40 0 AV *isa = get_av(SvPV_nolen(isa_name), GV_ADD | (SvFLAGS(isa_name) & SVf_UTF8));
111 38 2 if (!class->isa_empty) {
112 38 0 if(!av_count(isa)) {
28 10 if(!av_count(isa)) {
117 1 39 if (class->is_role) {
122 1 0 sv_catpv(sv_source_code, SvPV_nolen(class->name));
128 1 0 Perl_eval_pv(aTHX_ SvPV_nolen(sv_source_code), 1);
135 62 0 if(!method_name || !SvOK(method_name) || !SvCUR(method_name))
0 62 if(!method_name || !SvOK(method_name) || !SvCUR(method_name))
0 0 if(!method_name || !SvOK(method_name) || !SvCUR(method_name))
0 0 if(!method_name || !SvOK(method_name) || !SvCUR(method_name))
0 62 if(!method_name || !SvOK(method_name) || !SvCUR(method_name))
152 38 0 if(!field_name || !SvOK(field_name) || !SvCUR(field_name))
0 38 if(!field_name || !SvOK(field_name) || !SvCUR(field_name))
0 0 if(!field_name || !SvOK(field_name) || !SvCUR(field_name))
0 0 if(!field_name || !SvOK(field_name) || !SvCUR(field_name))
38 0 if(!field_name || !SvOK(field_name) || !SvCUR(field_name))
156 0 58 for(i = 0; i < av_count(fields); i++) {
20 38 for(i = 0; i < av_count(fields); i++) {
158 13 7 if(SvCUR(field->name) < 2)
161 0 7 if(sv_eq(field->name, field_name))