File Coverage

blib/lib/Search/Typesense/Role/UserAgentInterface.pm
Criterion Covered Total %
statement 8 8 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 11 11 100.0


line stmt bran cond sub pod time code
1             package Search::Typesense::Role::UserAgentInterface;
2              
3 4     4   2334 use v5.16.0;
  4         65  
4 4     4   25 use Moo::Role;
  4         8  
  4         28  
5              
6 4         44 use Search::Typesense::Types qw(
7             InstanceOf
8 4     4   2162 );
  4         10  
9              
10             our $VERSION = '0.06';
11              
12             sub _ua;
13             has _ua => (
14             is => 'lazy',
15             isa => InstanceOf ['Mojo::UserAgent'],
16             weak_ref => 1,
17             init_arg => 'user_agent',
18             required => 1,
19             );
20              
21             sub _url_base;
22             has _url_base => (
23             is => 'lazy',
24             isa => InstanceOf ['Mojo::URL'],
25             weak_ref => 1,
26             init_arg => 'url',
27             required => 1,
28             );
29              
30             1;
31              
32             __END__
33              
34             =head1 NAME
35              
36             Search::Typesense::Role::UserAgentInterface - No user-serviceable parts inside