lib/Bb/Collaborate/Ultra/Recording.pm

filter: Statementstmt 73.6% 14 / 19 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 75.0% 3 / 4 Podpod 100% 1 / 1 totaltotal 62.0% 18 / 29 CC 2 SCAR 11.0
CC
2
Cov
64%
url
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.0
« lib/Bb/Collaborate/Ultra/Session.pm ↑ Summary lib/Bb/Collaborate/Ultra/Session/Log/Attendee.pm »
1 package Bb::Collaborate::Ultra::Recording;
2 2 ▶use warnings; use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use Mouse;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 extends 'Bb::Collaborate::Ultra::DAO';
5 2 __PACKAGE__->resource('recordings');
6 2 __PACKAGE__->load_schema(<DATA>);
7  
8 2 __PACKAGE__->query_params(
9 name => 'Str',
10 contextId => 'Str',
11 startTime => 'Date',
12 endTime => 'Date'
13 );
14  
15 =head1 NAME
16  
17 Bb::Collaborate::Ultra::Recording - Session Recordings
18  
19 =head1 METHODS
20  
21 This class supports the `get` and `delete` methods as described in L<https://xx-csa.bbcollab.com/documentation#Recording>.
22  
23 =cut
24
25 =head2 url
26  
27 Returns a play-back URL for the recording
28  
29 =cut
30  
31 0 ▶sub url {
Subroutine url: not called CC=2 SCAR=17.9
Pod documented
32 0 my $self = shift;
33 0 ▶ my $connection = shift || $self->connection;
Condition0%0/3
shift() || $self->connection
l!l&&r!l&&!r
000
MC/DC0%0/2
shift() || $self->connection
shift() $self->connection
Truth table0%0/3
A || B
A= shift()B= $self->connection
ABresult
1X1
011
000
34 0 my $path = $self->path.'/url';
35 0 my $response = $connection->GET($path);
36 0 $response->{url};
37 }
38  
39 # downloaded from https://xx-csa.bbcollab.com/documentation
40 2 1;
41 __DATA__
« lib/Bb/Collaborate/Ultra/Session.pm ↑ Summary lib/Bb/Collaborate/Ultra/Session/Log/Attendee.pm »