File Coverage

blib/lib/X11/Protocol/Connection.pm
Criterion Covered Total %
statement 9 13 69.2
branch n/a
condition n/a
subroutine 3 7 42.8
pod 4 4 100.0
total 16 24 66.6


line stmt bran cond sub pod time code
1             #!/usr/bin/perl
2              
3             package X11::Protocol::Connection;
4              
5             # Copyright (C) 1997 Stephen McCamant. All rights reserved. This program
6             # is free software; you can redistribute and/or modify it under the same
7             # terms as Perl itself.
8              
9 1     1   6 use Carp;
  1         20  
  1         55  
10 1     1   5 use strict;
  1         1  
  1         27  
11 1     1   5 use vars '$VERSION';
  1         2  
  1         136  
12              
13             $VERSION = 0.01;
14              
15             sub give {
16 0     0 1   croak "X11 connection object doesn't support output";
17             }
18              
19             sub get {
20 0     0 1   croak "X11 connection object doesn't support input";
21             }
22              
23             sub fh {
24 0     0 1   croak "X11 connection object is incompatible with perl filehandles";
25             }
26              
27             sub open {
28 0     0 1   croak "X11 connection object can't open itself";
29             }
30              
31             1;
32             __END__