| lib/Brownie/Node/Mechanize.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 34 | 60 | 56.6 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 12 | 26 | 0 | 8 | lc $_[0]->tag eq 'a' && $_[0]->attr('href') |
| 22 | 84 | 21 | 0 | lc $_[0]->tag eq 'select' && ($_[0]->attr('id') || $_[0]->attr('name')) |
| 38 | 16 | 68 | 0 | $self->tag_name eq 'input' and $self->type =~ /^(?:text|password|file|hidden)$/i || !$self->type |
| 44 | 24 | 0 | 114 | $self->tag_name eq 'input' and $self->type =~ /^(?:submit|image)$/i |
| 45 | 8 | 16 | 0 | $self->tag_name eq 'button' and !$self->type || $self->type eq 'submit' |
| 51 | 29 | 9 | 12 | $self->tag_name eq 'input' && $self->type eq 'checkbox' |
| 56 | 26 | 0 | 9 | $self->tag_name eq 'input' && $self->type eq 'radio' |
| 68 | 3 | 0 | 3 | lc $_[0]->tag eq 'select' && $_[0]->attr('multiple') |
| 120 | 9 | 0 | 1 | lc $_[0]->tag eq 'input' and lc($_[0]->attr('type') || '') eq 'hidden' |
| 175 | 0 | 0 | 3 | $self->_is_option and $self->_is_in_multiple_select |
| line | l | !l | condition |
|---|---|---|---|
| 83 | 489 | 24 | $self->native->attr($name) || '' |
| 118 | 0 | 12 | $_[0]->attr('style') or '' |
| 120 | 1 | 0 | $_[0]->attr('type') || '' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 38 | 9 | 2 | 57 | $self->type =~ /^(?:text|password|file|hidden)$/i || !$self->type |
| 45 | 0 | 16 | 0 | !$self->type || $self->type eq 'submit' |
| 74 | 0 | 0 | 8 | $self->_is_text_field || $self->_is_button || $self->_is_checkbox || $self->_is_radio || $self->_is_option |
| 119 | 1 | 1 | 10 | lc $_[0]->tag eq 'script' or lc $_[0]->tag eq 'head' |
| 129 | 0 | 2 | 2 | $self->attr('selected') || $self->attr('checked') |
| 137 | 0 | 0 | 0 | $self->_is_checkbox or $self->_is_radio |
| 0 | 0 | 0 | $self->_is_checkbox or $self->_is_radio or $self->_is_option | |
| 195 | 0 | 0 | 0 | $self->_is_checkbox or $self->_is_option |