Branch Coverage

blib/lib/Audio/Nama/Track.pm
Criterion Covered Total %
branch 0 328 0.0


line true false branch
80 0 0 unless $Audio::Nama::Track::by_index{$n}
98 0 0 if $restore
100 0 0 if @undeclared
104 0 0 if $Audio::Nama::Track::by_name{$vals{'name'}}
133 0 0 unless $nopan or $restore
134 0 0 unless $novol or $restore
137 0 0 unless $object->hide
149 0 0 $self->project ? :
156 0 0 unless $self->target
172 0 0 if ($track->rec_status eq 'REC') { }
0 0 elsif ($track->rec_status eq 'PLAY') { }
190 0 0 if ($status eq 'REC') { }
0 0 elsif ($status eq 'PLAY') { }
193 0 0 $Audio::Nama::Track::config->{'use_group_numbering'} ? :
206 0 0 if $track->version and grep {$track->version == $_;} @{$track->versions;}
212 0 0 if $monitor_version and not $Audio::Nama::Track::mode->doodle
226 0 0 unless Audio::Nama::Wav::last('dir', $self->dir, 'name', $self->basename)
232 0 0 unless $bus->engine_group or $track->{'engine_group'}
253 0 0 if ($bus->rw eq 'OFF' or $track->rw eq 'OFF' or $Audio::Nama::Track::mode->doodle and not $Audio::Nama::Track::mode->eager and $track->rw eq 'REC' and $Audio::Nama::Track::setup->{'tracks_with_duplicate_inputs'}{$track->name} or $track->engine_group ne $Audio::Nama::this_engine->name)
265 0 0 if ($track->rw eq 'REC') { }
0 0 elsif ($track->rw eq 'MON') { }
268 0 0 if ($source_type eq 'track' or $source_type eq 'loop') { }
0 0 elsif ($source_type eq 'jack_client') { }
0 0 elsif ($source_type eq 'jack_manual') { }
0 0 elsif ($source_type eq 'jack_ports_list') { }
0 0 elsif ($source_type eq 'null') { }
0 0 elsif ($source_type eq 'rtnull') { }
0 0 elsif ($source_type eq 'soundcard') { }
0 0 elsif ($source_type eq 'bus') { }
274 0 0 Audio::Nama::jack_client_array($track->source_id, 'output') ? :
299 0 0 if $rs eq 'REC'
307 0 0 if $track->rec_status ne 'PLAY'
313 0 0 if $track->rec_status ne 'PLAY'
314 0 0 if ($track->region_end eq 'END') { }
322 0 0 if $track->rec_status ne 'PLAY'
332 0 0 unless $Audio::Nama::Track::mode->{'offset_run'}
338 0 0 unless $Audio::Nama::Track::mode->{'offset_run'}
343 0 0 unless $Audio::Nama::Track::mode->{'offset_run'}
348 0 0 unless $Audio::Nama::Track::mode->{'offset_run'}
365 0 0 unless $track->{'ops'}
393 0 0 if $track->is_mix_track and $track->rec_status ne 'PLAY'
400 0 0 if ($track->source_type eq 'track') { }
0 0 elsif ($track->rec_status =~ /REC|MON/u) { }
0 0 elsif ($track->rec_status eq 'PLAY' and not $Audio::Nama::Track::mode->doodle) { }
411 0 0 unless $_[0]->prefader_insert
465 0 0 $track->$type_field ? :
0 0 unless ($id)
470 0 0 if ($type eq 'track') { }
0 0 elsif ($type eq 'soundcard') { }
0 0 elsif ($type eq 'bus') { }
0 0 elsif ($type =~ /jack/u) { }
480 0 0 unless $Audio::Nama::Track::jack->{'jackd_running'}
482 0 0 if ($type eq 'jack_manual') { }
0 0 elsif ($type eq 'jack_client') { }
0 0 elsif ($type eq 'jack_ports_list') { }
492 0 0 $direction eq 'source' ? :
496 0 0 unless $width
498 0 0 unless $width
499 0 0 if $width ne $track->width
508 0 0 unless -e join_path(Audio::Nama::project_root(), $id)
533 0 0 if ($old_source eq $new_source) { }
537 0 0 if (transition_to_null($old_source, $new_source))
540 0 0 if $track->rw eq 'REC'
548 0 0 if $old =~ /$null_re/u
552 0 0 if not $old =~ /$null_re/u
559 0 0 if ($n == 0) { }
0 0 elsif (grep {$n == $_;} @{$track->versions;}) { }
579 0 0 if ($old_send eq $new_send) { }
580 0 0 $object ? :
583 0 0 $object ? :
622 0 0 unless $track->is_mix_track
623 0 0 $track->name eq 'Master' ? :
629 0 0 if $track->rec_status eq 'PLAY'
631 0 0 if $track->is_mix_track
632 0 0 unless $track->source_type eq 'soundcard'
649 0 0 unless $track->group =~ /^(null|Master)$/u
652 0 0 unless $send_type
653 0 0 if $out
659 0 0 if (my $t = $track->target)
662 0 0 if $track->project
689 0 0 $status ne $setting ? :
699 0 0 if ($track->rec_status ne 'PLAY')
711 0 0 if ($track->rec_status ne 'PLAY')
737 0 0 if defined $track->old_vol_level
741 0 0 unless $vol
746 0 0 $nofade ? :
755 0 0 unless defined $track->old_vol_level
757 0 0 $nofade ? :
771 0 0 unless $track->is_user_track
776 0 0 unless (-r $path)
783 0 0 unless ($frequency)
790 0 0 if ($frequency == $desired_frequency and $path =~ /.wav$/iu) { }
792 0 0 unless copy($path, $destination)
800 0 0 unless Audio::Nama::load_ecs($path)
804 0 0 if $Audio::Nama::Track::config->{'opts'}{'R'}
807 0 0 unless $_[0]->target
810 0 0 $direction =~ /source|input/u ? :
816 0 0 if $mix eq 'Main'
823 0 0 if $_->host_track eq $track->name
848 0 0 unless $track->is_system_track
852 0 0 if $track->is_system_track
859 0 0 if ($track->region_start) { }
870 0 0 unless $Audio::Nama::Track::project->{'track_version_comments'}{$track->name}{$v}
872 0 0 if $text
874 0 0 if $system
875 0 0 if $text
907 0 0 if ref $io
912 0 0 if ref $io
931 0 0 unless @v
936 0 0 unless $t->targets->{$v}
942 0 0 unless $t->targets->{$v}
948 0 0 unless $t->targets->{$v}
950 0 0 unless $t->version_comment($v)
955 0 0 if $Audio::Nama::Track::project->{'track_version_comments'}{$t->name}{$v}
974 0 0 if $FX->type =~ /$type/u
979 0 0 if $Audio::Nama::Track::bn{$track->name} or $track->name eq 'Master'
987 0 0 if $FX->name eq $ident
992 0 0 if $FX->name =~ /^$nick\d*$/u
1004 0 0 if ($FX->surname =~ /^$surname(\d*)$/u)
1008 0 0 if $1 > $max
1011 0 0 if (%found) { }
1019 0 0 if ($FX->name =~ /^$nickname(\d*)$/u)
1022 0 0 if $1 and $1 > $i
1025 0 0 @found ? :
1032 0 0 if $FX->surname eq $surname
1033 0 0 @found ? :
1053 0 0 if $comments
1069 0 0 $track->rw ne 'OFF' ? :
1073 0 0 if $Audio::Nama::SimpleTrack::tn{'Mixdown'}->rec_status eq 'REC'
1074 0 0 if $track->rec_status ne 'OFF'
1089 0 0 if $track->engine_group ne $Audio::Nama::MasteringTrack::this_engine->name
1090 0 0 $Audio::Nama::MasteringTrack::mode->{'mastering'} ? :
1143 0 0 $Audio::Nama::BoostTrack::mode->{'mastering'} ? :
1176 0 0 if ($status eq 'REC') { }
0 0 elsif ($status eq 'PLAY') { }
1182 0 0 if $track->rec_status eq 'REC'
1188 0 0 if $track->rec_status eq 'PLAY'
1192 0 0 if $track->rw eq 'REC'
1216 0 0 if ($status eq 'REC') { }
0 0 elsif ($status eq 'PLAY') { }
1257 0 0 if $self->name eq $_
1268 0 0 $self->is_region ? :
0 0 $self->{'duration'} ? :
1274 0 0 $self->predecessor ? :
1279 0 0 $previous ? :
1333 0 0 if $Audio::Nama::tn{$name}
1335 0 0 if grep(($name eq $_), @{$$Audio::Nama::mastering{'track_names'};})
1341 0 0 unless $track
1343 0 0 if $Audio::Nama::gui->{'_chr'}
1347 0 0 if $Audio::Nama::mode->{'preview'} and $bus->rw eq 'MON'
1349 0 0 unless $track->target
1355 0 0 $track->target ? :
1369 0 0 if ($Audio::Nama::tn{$track}) { }
0 0 elsif ($Audio::Nama::ti{$track}) { }
1380 0 0 if (-d $dir) { }
1381 0 0 if (glob "$dir/$track*.wav") { }
1420 0 0 if $Audio::Nama::tn{$track_name} and $Audio::Nama::tn{$track_name}->$type
1424 0 0 if ($volpan{$track_name})
1425 0 0 $volpan{$track_name}{$type} ? :
1435 0 0 if $count == 1
1436 0 0 if $count == 2
1443 0 0 unless need_vol_pan($Audio::Nama::ti{$n}->name, 'vol')
1456 0 0 unless need_vol_pan($Audio::Nama::ti{$n}->name, 'pan')
1522 0 0 if $_->group ne 'Temp'