Selenium/PhantomJS.pm

filter: Statementstmt 77.7% 21 / 27 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 55.5% 5 / 9 Podpod n/a totaltotal 72.2% 26 / 36 CC 1 SCAR 3.7
CC
1
Cov
78%
__ANON__
2.0
__ANON__
2.0
__ANON__
2.0
CRAP 1.4
« Test/Selenium/InternetExplorer.pm ↑ Summary Selenium/InternetExplorer.pm »
1 package Selenium::PhantomJS;
2 1 $Selenium::PhantomJS::VERSION = '1.50';
3 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 # ABSTRACT: Use GhostDriver without a Selenium server
7 3 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 3 ▶use Selenium::CanStartBinary::FindBinary qw/coerce_simple_binary/;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 extends 'Selenium::Remote::Driver';
10  
11  
12 has '+browser_name' => (
13 is => 'ro',
14 2 ▶ default => sub { 'phantomjs' }
Subroutine __ANON__: called CC=1 SCAR=0.0
15 1 );
16  
17  
18 has 'binary' => (
19 is => 'lazy',
20 coerce => \&coerce_simple_binary,
21 0 ▶ default => sub { 'phantomjs' },
Subroutine __ANON__: not called CC=1 SCAR=6.9
22 1 predicate => 1
23 );
24  
25  
26 has 'binary_port' => (
27 is => 'lazy',
28 0 ▶ default => sub { 8910 }
Subroutine __ANON__: not called CC=1 SCAR=6.9
29 1 );
30  
31 has '_binary_args' => (
32 is => 'lazy',
33 0 ▶ builder => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
Subroutine _build__binary_args: not called CC=1 SCAR=6.9
34 0 my ($self) = @_;
35  
36 0 return ' --webdriver=127.0.0.1:' . $self->port;
37 }
38 1 );
39  
40 1 with 'Selenium::CanStartBinary';
41  
42  
43 1 1;
44  
45 __END__
« Test/Selenium/InternetExplorer.pm ↑ Summary Selenium/InternetExplorer.pm »