Condition Coverage

blib/lib/Convos/Plugin/Helpers.pm
Criterion Covered Total %
condition 6 41 14.6


and 3 conditions

line !l l&&!r l&&r condition
253 0 0 0 not $$n{'is_channel'} and $nick_seen{$$n{'target'}}++
325 0 0 0 $names and $$names[0]

or 2 conditions

line l !l condition
13 0 36 $ENV{'CONVOS_DEBUG'} || 0
14 0 36 $ENV{'DEFAULT_AVATAR_URL'} || 'https://graph.facebook.com/%s/picture?height=40&width=40'
15 0 36 $ENV{'GRAVATAR_AVATAR_URL'} || 'https://gravatar.com/avatar/%s?s=40&d=retro'
16 0 36 $ENV{'CONVOS_DISABLE_AUTO_EMBED'} || 0
66 0 0 $target ||= ''
76 0 0 $networks || []
83 0 0 shift @args || 0
126 0 0 $$message{'uuid'} ||= ''
127 0 0 $$message{'avatar'} ||= ''
139 0 0 delete $$c{'conversation'} || []
148 0 0 $c->stash->{'convos.avatar_cache'} ||= {}
186 0 0 $$message{'highlight'} ||= 0
290 0 0 $c->session('tz_offset') || 0

or 3 conditions

line l !l&&r !l&&!r condition
163 0 0 0 shift @$data || shift @$data || "$user\@$$message{'host'}"
211 0 8 34 $c->$cache_to->{'redis'} ||= do { my $log = $c->app->log; die "CONVOS_REDIS_URL is not set. Run 'perldoc Convos' for details.\n" unless my $url = $ENV{'CONVOS_REDIS_URL'}; my $redis = 'Mojo::Redis'->new('server', $url); $redis->on('error', sub { $log->error("[REDIS ERROR] $_[1]"); } ); $redis }
294 0 0 0 $timestamp ||= $now