Condition Coverage

blib/lib/Mojo/Weixin/Message/Remote/_upload_media.pm
Criterion Covered Total %
condition 0 26 0.0


and 3 conditions

line !l l&&!r l&&r condition
12 0 0 0 defined $msg and defined $msg->media_data || defined $msg->media_path
187 0 0 0 not defined $msg->media_md5 and defined $msg->media_data

or 2 conditions

line l !l condition
11 0 0 $self->media_size_max // 20971520
46 0 0 $tx->res->headers->content_type || 'application/octet-stream'
199 0 0 $Mojo::Weixin::Const::KEY_MAP_MEDIA_CODE{$msg->media_type} || 6
252 0 0 $msg->media_mime // 'application/octet-stream'

or 3 conditions

line l !l&&r !l&&!r condition
12 0 0 0 defined $msg->media_data || defined $msg->media_path
46 0 0 0 $tx->res->headers->last_modified || time
0 0 0 $tx->res->headers->content_length || length $body
252 0 0 0 $msg->media_type eq 'video' || $msg->media_type eq 'microvideo'