GraphQL/Role/Listable.pm

filter: Statementstmt 100% 23 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod n/a totaltotal 100% 31 / 31 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« GraphQL/Role/Input.pm ↑ Summary GraphQL/Role/Nullable.pm »
1 package GraphQL::Role::Listable;
2  
3 18 ▶use 5.014;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 18 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 18 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 18 ▶use Types::Standard -all;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 18 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 18 ▶use GraphQL::Type::List;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 14 our $VERSION = '0.02';
11  
12 =head1 NAME
13  
14 GraphQL::Role::Listable - GraphQL object role
15  
16 =head1 SYNOPSIS
17  
18 with qw(GraphQL::Role::Listable);
19  
20 # or runtime
21 Role::Tiny->apply_roles_to_object($foo, qw(GraphQL::Role::Listable));
22  
23 =head1 DESCRIPTION
24  
25 Provides shortcut method for getting a type object's list wrapper.
26  
27 =head1 METHODS
28  
29 =head2 list
30  
31 Returns a wrapped version of the type using L<GraphQL::Type::List>.
32  
33 =cut
34  
35 has list => (
36 is => 'lazy',
37 isa => InstanceOf['GraphQL::Type::List'],
38 97 ▶ builder => sub { GraphQL::Type::List->new(of => $_[0]) },
Subroutine _build_list: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
39 14 );
40  
41 14 __PACKAGE__->meta->make_immutable();
42  
43 14 1;
« GraphQL/Role/Input.pm ↑ Summary GraphQL/Role/Nullable.pm »