File: make_corpus.pl

package info (click to toggle)
libtest-bdd-cucumber-perl 0.87-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 716 kB
  • sloc: perl: 4,493; makefile: 8
file content (18 lines) | stat: -rwxr-xr-x 407 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!perl

use strict;
use warnings;
use FindBin::libs;

use Test::More;
use Test::DumpFeature;
use Test::BDD::Cucumber::Parser;
use YAML;
use File::Slurp;

my $file_data = read_file( $ARGV[0] );

my $feature      = Test::BDD::Cucumber::Parser->parse_string($file_data);
my $feature_hash = Test::DumpFeature::dump_feature($feature);

print $file_data . "\n----------DIVIDER----------\n" . Dump($feature_hash);