Definitions/Zip/Ru.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 26 CC 1 SCAR 6.9
CC
1
Cov
0%
import
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Test::BDD::Cucumber::Definitions::Zip::Ru;
2  
3 use strict;
4 use warnings;
5 use utf8;
6  
7 use Test::BDD::Cucumber::Definitions qw(Given When Then);
8 use Test::BDD::Cucumber::Definitions::Zip qw(Zip);
9  
10 our $VERSION = '0.41';
11  
12 ## no critic [RegularExpressions::ProhibitCaptureWithoutTest]
13 ## no critic [RegularExpressions::RequireExtendedFormatting]
14 ## no critic [RegularExpressions::ProhibitComplexRegexes]
15  
16 =encoding utf8
17  
18 =head1 NAME
19  
20 Test::BDD::Cucumber::Definitions::Zip::Ru - Шаги на русском языке
21 для работы с архивами Zip
22  
23 =head1 SYNOPSIS
24  
25 В файле B<features/step_definitions/zip_steps.pl>:
26  
27 #!/usr/bin/perl
28  
29 use strict;
30 use warnings;
31 use utf8;
32 use open qw(:std :utf8);
33  
34 use Test::BDD::Cucumber::Definitions::HTTP::Ru;
35 use Test::BDD::Cucumber::Definitions::Zip::Ru;
36  
37 В файле B<features/zip.feature>:
38  
39 Feature: Zip (Ru)
40 Работа с архивами Zip
41  
42 Scenario: HTTP->Zip
43 When HTTP-запрос "GET" отправлен на "http://example.com/test.zip"
44 Given содержимое HTTP-ответа прочитано как Zip
45  
46 =head1 ИСТОЧНИКИ ДАННЫХ
47  
48 Архивы Zip могут быть прочитаны из различных источников.
49  
50 Для работы с источниками требуется использование модуля Zip
51 совместно с другими модулями, например HTTP.
52  
53 =head1 ШАГИ
54  
55 =cut
56  
57 sub import {
58  
59 =head2 Чтение данных
60  
61 =pod
62  
63 Прочитать данные из L<содержимого HTTP-ответа|Test::BDD::Cucumber::Definitions::HTTP::Ru>
64 в L<архив Zip|Test::BDD::Cucumber::Definitions::Zip::Ru>:
65  
66 Given содержимое HTTP-ответа прочитано как Zip
67  
68 =cut
69  
70 # read http response content as Zip
71 Given qr/содержимое HTTP-ответа прочитано как Zip/, sub {
72 Zip->read_http_response_content_as_zip();
73 };
74  
75 return;
76 }
77  
78 1;
79  
80 =head1 AUTHOR
81  
82 Mikhail Ivanov C<< <m.ivanych@gmail.com> >>
83  
84 =head1 LICENSE AND COPYRIGHT
85  
86 Copyright 2018 Mikhail Ivanov.
87  
88 This is free software; you can redistribute it and/or modify it
89 under the same terms as the Perl 5 programming language system itself.
90  
91 =pod