File Coverage

blib/lib/Starch/Plugin/ForStore.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 15 15 100.0


line stmt bran cond sub pod time code
1             package Starch::Plugin::ForStore;
2 8     8   4718 use 5.008001;
  8         31  
3 8     8   45 use strictures 2;
  8         58  
  8         324  
4             our $VERSION = '0.12';
5              
6             =head1 NAME
7              
8             Starch::Plugin::ForStore - Base role for Starch::Store plugins.
9              
10             =head1 SYNOPSIS
11              
12             package MyPlugin::Store;
13             use Moo;
14             with 'Starch::Plugin::ForStore';
15             sub foo { print 'bar' }
16              
17             my $starch = Starch->new(
18             plugins => ['MyPlugin::Store'],
19             ...,
20             );
21             $starch->store->foo(); # bar
22              
23             =head1 DESCRIPTION
24              
25             This role provides no additional functionality to
26             store plugins. All it does is labels a plugin as a store
27             plugin so that Starch knows which class type it applies to.
28              
29             See L for more information.
30              
31             =cut
32              
33 8     8   1528 use Moo::Role;
  8         20  
  8         48  
34 8     8   2566 use namespace::clean;
  8         22  
  8         52  
35              
36             1;
37             __END__