SFDC/Apex.pm untested

filter: Statementstmt 0.0% 0 / 36 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 12 Podpod 0.0% 0 / 4 totaltotal 0.0% 0 / 54 CC 1 SCAR 6.9
CC
1
Cov
0%
_extractURL
2.0
compileAndTest
2.0
compileClasses
2.0
CRAP 2.0
1 #!/usr/bin/env perl
2 package WWW::SFDC::Apex;
3 # ABSTRACT: Interface to the salesforce.com Apex SOAP Api
4  
5 use 5.12.0;
6 use strict;
7 use warnings;
8  
9 our $VERSION = '0.36'; # TRIAL VERSION
10  
11 use Log::Log4perl ':easy';
12 use Method::Signatures;
13 use SOAP::Lite;
14  
15 use WWW::SFDC::Apex::ExecuteAnonymousResult;
16  
17 use Moo;
18 with "WWW::SFDC::Role::SessionConsumer";
19  
20 has 'uri',
21 is => 'ro',
22 default=> "http://soap.sforce.com/2006/08/apex";
23  
24 sub _extractURL {
25 # NB that the // are part of the pattern
26 return $_[1]->{serverUrl} =~ s{/u/}{/s/}r;
27 }
28  
29  
30  
31 sub compileAndTest () {
32 ...
33 }
34  
35  
36 sub compileClasses {
37 ...
38 }
39  
40  
41 sub compileTriggers {
42 ...
43 }
44  
45  
46 method executeAnonymous ($code, :$debug = 1) {
47  
48 my $callResult = $self->_call(
49 'executeAnonymous',
50 SOAP::Data->name(string => $code),
51 (
52 $debug
53 ? SOAP::Header->name('DebuggingHeader' => \SOAP::Data->name(
54 debugLevel => 'DEBUGONLY'
55 ))->uri($self->uri)
56 : ()
57 ),
58 );
59  
60 return WWW::SFDC::Apex::ExecuteAnonymousResult->new(
61 _result => $callResult->result,
62 _headers => $callResult->headers
63 );
64 }
65  
66  
67 sub runTests {
68 ...
69 }
70  
71  
72 sub wsdlToApex {
73 ...
74 }
75  
76 1;
77  
78 __END__