File Coverage

web/cgi-bin/yatt.lib/YATT/Inc.pm
Criterion Covered Total %
statement 10 10 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 0 1 0.0
total 14 15 93.3


line stmt bran cond sub pod time code
1             # -*- mode: perl; coding: utf-8 -*-
2             package YATT::Inc;
3 10     10   33 use strict;
  10         10  
  10         266  
4 10     10   27 use warnings FATAL => qw(all);
  10         13  
  10         762  
5              
6             sub import {
7 19     19   73 __PACKAGE__->add_inc(caller);
8             }
9              
10             sub add_inc {
11 79     79 0 98 my ($pack, $callpack) = @_;
12 79         243 $callpack =~ s{::}{/}g;
13 79         593 $INC{$callpack . '.pm'} = 1;
14             }
15              
16             1;