Framed/X/EmptyWrite.pm

filter: Statementstmt 100% 10 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 13 / 13 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Framed/X/EmptyRead.pm ↑ Summary Framed/X/ReadError.pm »
1 package IO::Framed::X::EmptyWrite;
2  
3 =encoding utf-8
4  
5 =head1 NAME
6  
7 IO::Framed::X::EmptyWrite
8  
9 =head1 SYNOPSIS
10  
11 use Try::Tiny;
12 use IO::Framed::Write;
13  
14 my $iof = IO::Framed::Write->new( $some_socket );
15  
16 try { $iof->write(q<>) }
17 catch {
18 if ( try { $_->isa('IO::Framed::Read') } ) { ... }
19 };
20  
21 =head1 DESCRIPTION
22  
23 Thrown when empty string or undef is given to C<write()>.
24  
25 =cut
26  
27 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
28 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
29  
30 1 ▶use parent qw( IO::Framed::X::Base );
Subroutine BEGIN: called CC=1 SCAR=0.0
31  
32 1 1;
« Framed/X/EmptyRead.pm ↑ Summary Framed/X/ReadError.pm »