File Coverage

blib/lib/Devel/IPerl/Display/PNG.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1             package Devel::IPerl::Display::PNG;
2             $Devel::IPerl::Display::PNG::VERSION = '0.008';
3 2     2   164043 use strict;
  2         5  
  2         46  
4 2     2   9 use warnings;
  2         4  
  2         46  
5              
6 2     2   306 use Moo;
  2         7686  
  2         12  
7             with qw(Devel::IPerl::Display::Role::MIMESource Devel::IPerl::Display::Role::WebImage);
8              
9             sub _as_text_plain {
10 5     5   13 '[PNG image]', # TODO get dimensions?
11             }
12 5     5   138 sub _build_mimetype { 'image/png' }
13              
14              
15             1;
16              
17             __END__
18              
19             =pod
20              
21             =encoding UTF-8
22              
23             =head1 NAME
24              
25             Devel::IPerl::Display::PNG
26              
27             =head1 VERSION
28              
29             version 0.008
30              
31             =head1 DESCRIPTION
32              
33             A L<Displayable|Devel::IPerl::Display::Role::Displayable> for images of MIME type C<image/png>.
34              
35             =head1 AUTHOR
36              
37             Zakariyya Mughal <zmughal@cpan.org>
38              
39             =head1 COPYRIGHT AND LICENSE
40              
41             This software is copyright (c) 2014 by Zakariyya Mughal.
42              
43             This is free software; you can redistribute it and/or modify it under
44             the same terms as the Perl 5 programming language system itself.
45              
46             =cut