Branch Coverage

blib/lib/App/bsky.pm
Criterion Covered Total %
branch 1 70 1.4


line true false branch
93 5 0 if $size > 0
358 0 0 if $ENV{'DEBUG'}
364 0 0 if (exists $profile_cache{$did})
369 0 0 if (@profile_lru > $MAX_CACHE)
379 0 0 if (@to_resolve)
380 0 0 if $ENV{'DEBUG'}
384 0 0 if (ref $res eq 'ARRAY' or ref $res eq 'HASH' and $res->{'profiles'}) { }
385 0 0 ref $res eq 'ARRAY' ? :
386 0 0 if $ENV{'DEBUG'}
396 0 0 if (exists $dids_to_resolve{$did})
402 0 0 if $ENV{'DEBUG'}
411 0 0 if (@post_queue)
412 0 0 if $ENV{'DEBUG'}
421 0 0 ref $author eq 'HASH' ? :
422 0 0 ref $author eq 'HASH' ? :
426 0 0 if ($record->{'reply'} and $record->{'reply'}{'parent'})
428 0 0 if ($parent_uri =~ m[^at://(did:[^/]+)]u)
431 0 0 ref $parent_profile eq 'HASH' ? :
445 0 0 if utf8::is_utf8($out)
462 0 0 if $ENV{'DEBUG'} or 1
466 0 0 if (defined $err)
470 0 0 if (not $err->fatal) { }
471 0 0 if $ENV{'DEBUG'} or 1
475 0 0 if $ENV{'DEBUG'} or 1
481 0 0 if ($json)
487 0 0 unless (defined $header->{'t'} and $header->{'t'} eq "#commit")
491 0 0 unless $op->{'action'} eq "create"
492 0 0 unless $op->{'path'} =~ m[^app\.bsky\.feed\.post/]u
501 0 0 if (ref $cid_raw eq "HASH" and exists $cid_raw->{'cid_raw'})
506 0 0 unless $record_bytes
510 0 0 unless $record
518 0 0 unless exists $profile_cache{$repo}
519 0 0 if ($record->{'reply'} and $record->{'reply'}{'parent'})
521 0 0 if ($parent_uri =~ m[^at://(did:[^/]+)]u)
523 0 0 unless exists $profile_cache{$parent_did}