File Coverage

blib/lib/Boundary/Impl.pm
Criterion Covered Total %
statement 18 18 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod n/a
total 24 24 100.0


line stmt bran cond sub pod time code
1             package Boundary::Impl;
2 1     1   937 use strict;
  1         3  
  1         36  
3 1     1   6 use warnings;
  1         2  
  1         34  
4              
5 1     1   5 use B::Hooks::EndOfScope;
  1         2  
  1         11  
6 1     1   64 use Boundary ();
  1         1  
  1         133  
7              
8             sub import {
9 2     2   63 my ($class, @interfaces) = @_;
10 2         7 my ($target, $filename, $line) = caller;
11              
12             on_scope_end {
13 2     2   23 local $Boundary::CROAK_MESSAGE_SUFFIX = ". at $filename line $line\n";
14 2         11 Boundary->apply_interfaces_to_package($target, @interfaces)
15 2         15 };
16              
17 2         115 return;
18             }
19              
20             1;