| 1 | package DBIO::ResultSource::View; | ||||||||||||
| 2 | # ABSTRACT: ResultSource object representing a view | ||||||||||||
| 3 | |||||||||||||
| 4 | 261 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 5 | 261 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | |||||||||||||
| 7 | 261 | our $VERSION = '0.900007'; | |||||||||||
| 8 | |||||||||||||
| 9 | 261 | ▶ | use DBIO::ResultSet; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 10 | |||||||||||||
| 11 | 261 | ▶ | use base qw/DBIO::Base/; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 12 | 261 | __PACKAGE__->load_components(qw/ResultSource/); | |||||||||||
| 13 | 261 | __PACKAGE__->mk_group_accessors( | |||||||||||
| 14 | 'simple' => qw(is_virtual view_definition deploy_depends_on) ); | ||||||||||||
| 15 | |||||||||||||
| 16 | |||||||||||||
| 17 | 2 | ▶ | sub from { | ||||||||||
|
Subroutine
from: called CC=2 SCAR=7.6
Pod
documented
| |||||||||||||
| 18 | 2 | my $self = shift; | |||||||||||
| 19 | 2 | ▶ | return \"(${\$self->view_definition})" if $self->is_virtual; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 20 | 0 | return $self->name; | |||||||||||
| 21 | } | ||||||||||||
| 22 | |||||||||||||
| 23 | |||||||||||||
| 24 | 9198 | ▶ | sub new { | ||||||||||
|
Subroutine
new: called CC=3 SCAR=11.2
Pod
documented
| |||||||||||||
| 25 | 9198 | my ( $self, @args ) = @_; | |||||||||||
| 26 | 9198 | my $new = $self->next::method(@args); | |||||||||||
| 27 | $new->{deploy_depends_on} = | ||||||||||||
| 28 | 0 | { map { $_ => 1 } | |||||||||||
| 29 | 570 | ▶ | @{ $new->{deploy_depends_on} || [] } } | ||||||||||
|
Condition50%1/2
$new->{'deploy_depends_on'} || []
MC/DC0%0/1
$new->{'deploy_depends_on'} || []
$new->{'deploy_depends_on'}
Truth table50%1/2
A
A= $new->{'deploy_depends_on'}
| |||||||||||||
| 30 | 9198 | ▶ | unless ref $new->{deploy_depends_on} eq 'HASH'; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 31 | 9198 | return $new; | |||||||||||
| 32 | } | ||||||||||||
| 33 | |||||||||||||
| 34 | |||||||||||||
| 35 | 261 | 1; | |||||||||||
| 36 | |||||||||||||
| 37 | __END__ | ||||||||||||