Branch Coverage

blib/lib/Mojo/SSE.pm
Criterion Covered Total %
branch 20 22 90.9


line true false branch
15 61 2 defined $event->{'text'} ? :
16 2 61 defined $event->{'comment'} ? :
19 2 61 if (@comment) { }
21 14 47 if defined $event->{'type'}
23 15 46 if defined $event->{'id'}
36 0 77 unless defined(my $lines = decode("UTF-8", $1))
39 3 74 if $lines =~ /^\s*:/u
43 15 98 if ($line =~ /^event(?::\s*(\S.*))?$/u) { }
81 17 elsif ($line =~ /^data(?::\s*(.*))?$/u) { }
17 0 elsif ($line =~ /^id(?::\s*(.*))?$/u) { }
44 7 74 $first++ ? :