| 1 | package TaskPipe::Role::MooseType_UserAgentType; | ||||||||||||||||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||||||||||||||||
| 3 | 1 | ▶ | use Moose::Role; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 4 | 1 | ▶ | use Moose::Util::TypeConstraints; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 5 | |||||||||||||||||||||||||||||||||||||||||||
| 6 | subtype 'UserAgentType', | ||||||||||||||||||||||||||||||||||||||||||
| 7 | as 'Any', | ||||||||||||||||||||||||||||||||||||||||||
| 8 | where { | ||||||||||||||||||||||||||||||||||||||||||
| 9 | 0 | ▶ | ref $_ | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=3 SCAR=24.8
Branch: 1 branch
Condition0%0/6
ref $_ && (ref $_ eq 'LWP::UserAgent' || ref $_ eq 'WWW::Mechanize::PhantomJS')
ref $_ eq "LWP::UserAgent" or ref $_ eq "WWW::Mechanize::PhantomJS"
MC/DC0%0/3
ref $_ && (ref $_ eq 'LWP::UserAgent' || ref $_ eq 'WWW::Mechanize::PhantomJS')
ref $_
ref $_ eq "LWP::UserAgent"
ref $_ eq "WWW::Mechanize::PhantomJS"
Truth table0%0/4
A && B or C
A= ref $_B= ref $_ eq "LWP::UserAgent"C= ref $_ eq "WWW::Mechanize::PhantomJS"
| |||||||||||||||||||||||||||||||||||||||||||
| 10 | && (ref $_ eq 'LWP::UserAgent' | ||||||||||||||||||||||||||||||||||||||||||
| 11 | || ref $_ eq 'WWW::Mechanize::PhantomJS') | ||||||||||||||||||||||||||||||||||||||||||
| 12 | 1 | }; | |||||||||||||||||||||||||||||||||||||||||
| 13 | |||||||||||||||||||||||||||||||||||||||||||
| 14 | =head1 NAME | ||||||||||||||||||||||||||||||||||||||||||
| 15 | |||||||||||||||||||||||||||||||||||||||||||
| 16 | TaskPipe::Role::MooseType_UserAgentType - user agent type type constraint | ||||||||||||||||||||||||||||||||||||||||||
| 17 | |||||||||||||||||||||||||||||||||||||||||||
| 18 | =head1 DESCRIPTION | ||||||||||||||||||||||||||||||||||||||||||
| 19 | |||||||||||||||||||||||||||||||||||||||||||
| 20 | A moose subtype to be included as a role | ||||||||||||||||||||||||||||||||||||||||||
| 21 | |||||||||||||||||||||||||||||||||||||||||||
| 22 | =head1 AUTHOR | ||||||||||||||||||||||||||||||||||||||||||
| 23 | |||||||||||||||||||||||||||||||||||||||||||
| 24 | Tom Gracey <tomgracey@gmail.com> | ||||||||||||||||||||||||||||||||||||||||||
| 25 | |||||||||||||||||||||||||||||||||||||||||||
| 26 | =head1 COPYRIGHT AND LICENSE | ||||||||||||||||||||||||||||||||||||||||||
| 27 | |||||||||||||||||||||||||||||||||||||||||||
| 28 | Copyright (c) Tom Gracey 2018 | ||||||||||||||||||||||||||||||||||||||||||
| 29 | |||||||||||||||||||||||||||||||||||||||||||
| 30 | TaskPipe is free software, licensed under | ||||||||||||||||||||||||||||||||||||||||||
| 31 | |||||||||||||||||||||||||||||||||||||||||||
| 32 | The GNU Public License Version 3 | ||||||||||||||||||||||||||||||||||||||||||
| 33 | |||||||||||||||||||||||||||||||||||||||||||
| 34 | =cut | ||||||||||||||||||||||||||||||||||||||||||
| 35 | |||||||||||||||||||||||||||||||||||||||||||
| 36 | 1 | 1; | |||||||||||||||||||||||||||||||||||||||||