Branch Coverage

File:bin/fuzz-harness-generator
Coverage:31.2%

line%coveragebranch
11050TFunless &GetOptions("help|h", \$help, "input|i=s", \$infile, "dry-run|n", \$dry_run, "output|o=s", \$outfile, "run|r", \$run, "verbose|v", \$verbose, "version|V", \$version, "replay-corpus|R=s", \$replay_corpus)
121100TFif $help
123100TFif ($version)
13250TFif ($replay_corpus)
1330TFif $dry_run
1340TFif $infile
1370TFunless @corpus_files
1410TFif ($outfile) { }
1420TFunless &main::open(my $fh, ">", $outfile)
1480TFif ($run)
15750TFif ($infile and @ARGV)
16150TFif ($infile)
163100TFif ($@)
16650TFunless (ref $schema eq "HASH")
16950TFunless ($schema->{'function'})
17450TFunless $infile ||= shift @ARGV
17650TFif ($dry_run and $run)
180100TFif ($dry_run and $outfile)
18450TFif ($verbose)
18850TFif ($run and not $outfile)
197100TFif ($dry_run) { }
50TFelsif ($outfile and -e $outfile and not $run) { }
20450TFunless (eval {         do {         "App::Test::Generator"->generate($infile, $tmp); 1 } })
21750TFif ($outfile)
21850TFif $outfile =~ /\.(pl|cgi)$/
21950TFif ($run)
2550TFif (-f $path) { }
0TFelsif (-d $path) { }
3080TFif eval {         do {         require $mod; 1 } } and $json_module = $mod
3100TFunless $json_module
3170TFunless &main::open(my $fh, "<", $file)
3240TFif ($@)
3300TFunless @{$bugs;}
3660TFif ($test_count == 0)
3740TFif $mod eq "UNKNOWN::Module"
4270TFunless defined $input
4300TFif $input =~ /^-?(?:\d+\.?\d*|\.\d+)$/
4820TFunless -f $schema_file
4840TFunless &main::open(my $fh, "<", $schema_file)
4860TFif (/^module:\s*(\S+)/)