Branch Coverage

src/class_plain_class.c
Criterion Covered Total %
branch 45 80 56.2


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) {
34 0 11 if(class->is_role) {
40 9 2 if (value) {
44 8 1 if (superstash) {
51 8 0 AV* super_class_isa = get_av(SvPV_nolen(super_class_isa_name), GV_ADD | (SvFLAGS(super_class_isa_name) & SVf_UTF8));
52 8 0 IV super_class_isa_classes_length = av_count(super_class_isa);
54 5 3 if (new_method) {
57 1 4 else if (super_class_isa_classes_length > 0) {
69 2 7 if(is_load_module) {
76 0 9 if(!superstash)
83 9 0 AV *isa = get_av(SvPV_nolen(isa_name), GV_ADD | (SvFLAGS(isa_name) & SVf_UTF8));
93 0 0 else if (strcmp(name, "does") == 0) {
105 0 0 if (role_name) {
113 41 0 AV *isa = get_av(SvPV_nolen(isa_name), GV_ADD | (SvFLAGS(isa_name) & SVf_UTF8));
115 39 2 if (!class->isa_empty) {
116 39 0 if(!av_count(isa)) {
29 10 if(!av_count(isa)) {
121 1 40 if (class->is_role) {
126 1 0 sv_catpv(sv_source_code, SvPV_nolen(class->name));
132 1 0 Perl_eval_pv(aTHX_ SvPV_nolen(sv_source_code), 1);
139 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))
156 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))
160 0 58 for(i = 0; i < av_count(fields); i++) {
20 38 for(i = 0; i < av_count(fields); i++) {
162 13 7 if(SvCUR(field->name) < 2)
165 0 7 if(sv_eq(field->name, field_name))