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   120870 use Catmandu::Sane;
  2         224906  
  2         20  
3 2     2   740 use Catmandu::Util qw(:check);
  2         6  
  2         648  
4 2     2   17 use Moo::Role;
  2         5  
  2         18  
5              
6             our $VERSION = "1.073";
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;