blib/lib/Druid/PostAggregator/Constant.pm untested

filter: Statementstmt 0.0% 0 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 15 CC 1 SCAR 6.9
CC
1
Cov
0%
type
2.0
build
2.0
BEGIN
2.0
CRAP 2.0
1 package Druid::PostAggregator::Constant;
2 use Moo;
3  
4 extends 'Druid::PostAggregator';
5  
6 has value => (is => 'ro');
7  
8 sub type { 'constant' }
9  
10 sub build {
11 my $self = shift;
12  
13 my $filter = {
14 'type' => $self->type,
15 'name' => $self->name,
16 'value' => $self->value,
17 };
18  
19 return $filter;
20 }
21  
22 1;
23