File Coverage

blib/lib/Catmandu/AlephX/UserAgent.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package Catmandu::AlephX::UserAgent;
2 2     2   106376 use Catmandu::Sane;
  2         196442  
  2         18  
3 2     2   620 use Catmandu::Util qw(:check);
  2         5  
  2         532  
4 2     2   15 use Moo::Role;
  2         4  
  2         15  
5              
6             our $VERSION = "1.072";
7              
8             has url => (
9             is => 'ro',
10             isa => sub { $_[0] =~ /^https?:\/\//o or die("url must be a valid web url\n"); },
11             required => 1
12             );
13             has default_args => (
14             is => 'ro',
15             isa => sub { check_hash_ref($_[0]); },
16             lazy => 1,
17             default => sub { +{}; }
18             );
19              
20             #usage: request($params,$methods)
21             requires qw(request);
22              
23             1;