lib/Context/Singleton/Exception/Nondeducible.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 11 | 11 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 4 | 4 | 100.0 |
pod | 1 | 1 | 100.0 |
total | 16 | 16 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | |||||||
2 | 3 | 3 | 20 | use strict; | |||
3 | 7 | ||||||
3 | 107 | ||||||
3 | 3 | 3 | 18 | use warnings; | |||
3 | 5 | ||||||
3 | 148 | ||||||
4 | |||||||
5 | package Context::Singleton::Exception::Nondeducible; | ||||||
6 | |||||||
7 | our $VERSION = v1.0.4; | ||||||
8 | |||||||
9 | 3 | 3 | 17 | use Exception::Class ( __PACKAGE__ ); | |||
3 | 7 | ||||||
3 | 15 | ||||||
10 | |||||||
11 | sub new { | ||||||
12 | 3 | 3 | 1 | 33 | my ($self, $rule) = @_; | ||
13 | |||||||
14 | 3 | 25 | $self->SUPER::new (error => "Cannot deduce: $rule"); | ||||
15 | } | ||||||
16 | |||||||
17 | 1; | ||||||
18 |