Branch Coverage

blib/lib/Test/Mojo/IRC.pm
Criterion Covered Total %
branch 22 26 84.6


line true false branch
48 1 13 unless ref $self
49 0 13 if $self->server
50 0 13 if $ENV{'TEST_MOJO_IRC_SERVER'}
56 38 539 unless length $self->{'server_buf'}
71 3 48 unless $self->{'reply_on'}
25 26 unless @{[] unless $self->{'reply_on'};}
72 4 22 unless $self->{'from_client'} =~ /$self->{'reply_on'}[0]/
93 20 14 if (ref $buf eq 'ARRAY') { }
2 12 elsif (ref $buf) { }
94 5 15 @$buf == 1 ? :
109 0 13 unless $arg =~ /^(?:-basic|-ua)$/
112 11 2 if $arg eq '-ua'
113 0 13 unless eval "package $caller; use Test::More; 1"