File Coverage

blib/lib/PITA/Test/Image/Qemu.pm
Criterion Covered Total %
statement 14 14 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod 1 1 100.0
total 21 21 100.0


line stmt bran cond sub pod time code
1             package PITA::Test::Image::Qemu;
2              
3             =pod
4              
5             =head1 NAME
6              
7             PITA::Test::Image::Qemu - A tiny Qemu test image that only boots and pings
8              
9             =head1 DESCRIPTION
10              
11             This distribution contains a small Qemu image intended for snapshot-mode
12             testing of the L module.
13              
14             Primarily, it is intended for testing the launch-shutdown cycle, and not
15             for testing discovery or package testing.
16              
17             It verifies that the driver is using the F binary properly.
18              
19             =head1 METHODS
20              
21             =cut
22              
23 2     2   2667 use 5.006;
  2         7  
  2         79  
24 2     2   10 use strict;
  2         3  
  2         66  
25 2     2   1767 use File::ShareDir ();
  2         13437  
  2         43  
26              
27 2     2   17 use vars qw{$VERSION};
  2         4  
  2         80  
28             BEGIN {
29 2     2   96 $VERSION = '0.41';
30             }
31              
32             1;
33              
34             =pod
35              
36             =head2 filename
37              
38             The static C method returns the location of the expanded testing
39             image, verified to exist. The file will be available only with read
40             permissions, and without the ability to write.
41              
42             =cut
43              
44             sub filename {
45 1     1 1 555 File::ShareDir::dist_file('PITA-Test-Image-Qemu', 'qemu.img');
46             }
47              
48             =pod
49              
50             =head1 SUPPORT
51              
52             Bugs should be reported via the CPAN bug tracker at
53              
54             L
55              
56             For other issues, contact the author.
57              
58             =head1 AUTHOR
59              
60             Adam Kennedy Eadamk@cpan.orgE
61              
62             =head1 SEE ALSO
63              
64             The Practical Image Testing Architecture (L)
65              
66             L, L
67              
68             =head1 COPYRIGHT
69              
70             Copyright 2006 - 2008 Adam Kennedy.
71              
72             This program is free software; you can redistribute
73             it and/or modify it under the same terms as Perl itself.
74              
75             The full text of the license can be found in the
76             LICENSE file included with this module.
77              
78             =cut