Branch Coverage

blib/lib/Test/Cucumber/Tiny.pm
Criterion Covered Total %
branch 76 94 80.8


line true false branch
185 3 1 unless ref $class
232 0 2 unless my(@scenarios) = _decode_yml(@_)
247 1 17 unless my $condition = shift()
251 2 15 if (ref $condition eq 'CODE')
281 1 25 unless my $condition = shift()
283 1 24 unless my $definition = shift()
309 1 24 unless my $condition = shift()
311 1 23 unless my $definition = shift()
337 1 23 unless my $condition = shift()
339 1 22 unless my $definition = shift()
391 1 16 unless my $condition = shift()
395 1 15 if (ref $condition eq 'CODE')
504 1 22 unless my $subject = $$scenario{'Scenario'}
507 17 5 unless $$scenario{'Examples'}
539 157 10 unless my $intercept = $self->_run_step($step, $scenario, $example, $stash_ref, $triggers{$step})
543 3 7 if $intercept eq $NEXT_STEP
544 4 3 if $intercept eq $NEXT_EXAMPLE
545 3 0 if $intercept eq $NEXT_SCENARIO
558 0 99 unless (@{$self->$array_name;})
561 32 67 if (not $$scenario{$big_name})
585 10 3 $int ? :
599 3 167 unless my $preconditions = shift()
605 43 124 ref $preconditions eq 'ARRAY' ? :
612 0 190 unless $precondition
613 2 188 if ref $precondition and not %$precondition
618 7 416 if (ref $precondition)
621 0 7 if ($checks{'missing'})
629 117 306 if ($precondition =~ /$condition/)
638 278 176 unless my(%example) = @_
641 0 477 if (ref $pre_cond) { }
652 0 13 unless my $error = $_
654 3 10 unless ref $error
655 0 10 if ref $error ne 'HASH'
656 0 10 unless my $intercept = $$error{'intercept'}
669 0 23 if (ref $scenario eq 'ARRAY')
672 23 0 if (ref $scenario eq 'HASH')
678 0 23 unless my(%result) = _check_hash_has_the_only_keys([@HEADS, @STEPS], %scenario_hash)
682 23 0 unless @{$result{'invalid'};}
684 0 0 $scenario_hash{'Scenario'} ? :
699 7 23 unless @invalid or @missing
746 0 55 unless my $message = shift()
748 0 55 unless my $mode = $ENV{'CUCUMBER_VERBOSE'} || $self->verbose
750 0 55 unless my $code = 'Test::More'->can($mode)
890 1 5 unless my $yml_file = shift()
893 1 4 unless (-f $yml_file)
897 1 3 unless my $scenarios_ref = YAML::LoadFile($yml_file)
900 1 2 if (ref $scenarios_ref ne 'ARRAY')