SD/CLI/Command/Ticket/Attachment/Search.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 22 CC 2 SCAR 12.8
CC
2
Cov
0%
get_search_callback
6.0
type
2.0
BEGIN
2.0
CRAP 3.6
1 package App::SD::CLI::Command::Ticket::Attachment::Search;
2 use Any::Moose;
3 extends 'Prophet::CLI::Command::Search';
4 with 'Prophet::CLI::RecordCommand';
5 with 'App::SD::CLI::Model::Attachment';
6  
7 sub type {'attachment'}
8  
9 sub get_search_callback {
10 my $self = shift;
11 return sub {
12 shift->prop('ticket') eq $self->uuid ? 1 : 0;
13 }
14 }
15  
16 __PACKAGE__->meta->make_immutable;
17 no Any::Moose;
18  
19 1;
20