Branch Coverage

blib/lib/Outthentic/Story.pm
Criterion Covered Total %
branch 0 178 0.0


line true false branch
79 0 0 if (debug_mod12())
93 0 0 if (-f project_root_dir() . '/Gemfile') { }
174 0 0 if (defined $val) { }
195 0 0 unless debug_mod1()
202 0 0 unless open FSTDOUT, '>>', stdout_file()
210 0 0 unless -f stdout_file()
214 0 0 unless open FSTDOUT, stdout_file()
230 0 0 if (debug_mod12())
233 0 0 unless File::Path::Tiny::mk($cache_dir)
234 0 0 unless File::Path::Tiny::empty_dir($cache_dir)
300 0 0 unless -e $story_module
302 0 0 if (debug_mod12())
312 0 0 unless (do $story_module)
313 0 0 if $@
325 0 0 if debug_mod1()
329 0 0 unless (do $hook_file)
330 0 0 if $@
356 0 0 unless open PERL_GLUE, '>', _perl_glue_file()
411 0 0 unless open RUBY_GLUE, '>', _ruby_glue_file()
459 0 0 unless open PYTHON_GLUE, '>', _python_glue_file()
503 0 0 unless open BASH_GLUE, '>', _bash_glue_file()
540 0 0 unless open PS_GLUE, '>', _ps_glue_file()
594 0 0 if debug_mod1()
596 0 0 if (-f project_root_dir() . '/Gemfile') { }
602 0 0 if (debug_mod12())
611 0 0 if ($st != 0)
617 0 0 unless open RUBY_HOOK_OUT, $out_file
627 0 0 if $l =~ /#/
629 0 0 if $l =~ /quit:(.*)/
631 0 0 if $l =~ /outthentic_die:(.*)/
633 0 0 if $l =~ /ignore_story_err:\s+(\d)/
635 0 0 if ($l =~ s/story_var_json_begin.*// .. $l =~ s/story_var_json_end.*//)
641 0 0 if ($l =~ /story:\s+(\S+)/)
645 0 0 if (debug_mod12())
666 0 0 if debug_mod1()
668 0 0 if (debug_mod12())
677 0 0 if ($st != 0)
683 0 0 unless open PYTHON_HOOK_OUT, $out_file
693 0 0 if $l =~ /#/
695 0 0 if $l =~ /quit:(.*)/
697 0 0 if $l =~ /outthentic_die:(.*)/
699 0 0 if $l =~ /ignore_story_err:\s+(\d)/
701 0 0 if ($l =~ s/story_var_json_begin.*// .. $l =~ s/story_var_json_end.*//)
707 0 0 if ($l =~ /story:\s+(\S+)/)
711 0 0 if (debug_mod12())
737 0 0 if debug_mod1()
739 0 0 if (debug_mod12())
748 0 0 if ($st != 0)
754 0 0 unless open HOOK_OUT, $out_file
764 0 0 if $l =~ /#/
766 0 0 if $l =~ /quit:(.*)/
768 0 0 if $l =~ /outthentic_die:(.*)/
770 0 0 if $l =~ /ignore_story_err:\s+(\d)/
772 0 0 if ($l =~ /story_var_bash:\s+(\S+)\s+(.*)/)
778 0 0 if ($l =~ /story:\s+(\S+)/)
780 0 0 if (debug_mod12())
801 0 0 if debug_mod1()
803 0 0 if ($^O =~ /MSWin/) { }
809 0 0 if (debug_mod12())
818 0 0 if ($st != 0)
824 0 0 unless open HOOK_OUT, $out_file
834 0 0 if $l =~ /#/
836 0 0 if $l =~ /quit:(.*)/
838 0 0 if $l =~ /outthentic_die:(.*)/
840 0 0 if $l =~ /ignore_story_err:\s+(\d)/
842 0 0 if ($l =~ s/story_var_json_begin.*// .. $l =~ s/story_var_json_end.*//)
847 0 0 if ($l =~ /story:\s+(\S+)/)
851 0 0 if (debug_mod12())
874 0 0 unless open STORY_VARS, '>', story_cache_dir() . '/variables.json'
881 0 0 unless open STORY_VARS, '>', story_cache_dir() . '/variables.bash'
914 0 0 if ($format eq 'production') { }
0 0 elsif ($format ne 'concise') { }
917 0 0 nocolor() ? :
920 0 0 if $format ne 'concise'
930 0 0 unless $no_new_line
949 0 0 if $^O =~ /MSWin/
1003 0 0 unless ($OS)
1007 0 0 if $data =~ /alpine/i and $OS = 'alpine'
1008 0 0 if $data =~ /minoca/i and $OS = 'minoca'
1009 0 0 if $data =~ /centos linux(\d+)/i and $OS = "centos$1"
1010 0 0 if $data =~ /Red Hat.*release\s+(\d)/i and $OS = "centos$1"
1011 0 0 if $data =~ /arch/i and $OS = 'archlinux'
1012 0 0 if $data =~ /funtoo/i and $OS = 'funtoo'
1013 0 0 if $data =~ /fedora/i and $OS = 'fedora'
1014 0 0 if $data =~ /amazon/i and $OS = 'amazon'
1015 0 0 if $data =~ /ubuntu/i and $OS = 'ubuntu'
1016 0 0 if $data =~ /debian/i and $OS = 'debian'
1017 0 0 if $data =~ /darwin/i and $OS = 'darwin'
1018 0 0 if $data =~ /MSWin/i and $OS = 'windows'