Branch Coverage

blib/lib/File/fgets.pm
Criterion Covered Total %
branch 16 16 100.0


line true false branch
50 1 28 unless defined $fh
51 1 27 unless defined $limit
52 1 26 if do { tell $fh == -1 }
53 2 24 if eof $fh
57 1 23 if $limit == 0
61 21 2 $has_fd ? :
72 1 7 unless defined $char
74 1 6 if $char eq "\n"