File: make_corpus.pl

package info (click to toggle)
libtest-bdd-cucumber-perl 0.26-1~bpo70%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 528 kB
  • sloc: perl: 3,436; makefile: 8
file content (18 lines) | stat: -rwxr-xr-x 413 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::Syck;
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 );